Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EnumLayout<T, P>

Type parameters

  • T

  • P: string = ""

Hierarchy

Index

Properties

property?: P
registry: Record<string, Layout<any, "">>
span: number

Methods

  • decode(b: Buffer, offset?: number): T
  • Parameters

    • b: Buffer
    • Optional offset: number

    Returns T

  • encode(src: T, b: Buffer, offset?: number): number
  • Parameters

    • src: T
    • b: Buffer
    • Optional offset: number

    Returns number

  • getSpan(b: Buffer, offset?: number): number
  • Parameters

    • b: Buffer
    • Optional offset: number

    Returns number

  • replicate<AP>(name: AP): Layout<T, AP>
  • Type parameters

    • AP: string

    Parameters

    • name: AP

    Returns Layout<T, AP>