Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • P: string = ""

Hierarchy

  • Layout<Record<string, boolean>, P>
    • WideBits

Index

Constructors

  • new WideBits<P>(property?: P): WideBits<P>
  • Type parameters

    • P: string = ""

    Parameters

    • Optional property: P

    Returns WideBits<P>

Properties

_lower: any
_upper: any
property?: P
span: number

Methods

  • addBoolean(property: string): void
  • Parameters

    • property: string

    Returns void

  • decode(b: Buffer, offset?: number): Record<string, boolean>
  • Parameters

    • b: Buffer
    • offset: number = 0

    Returns Record<string, boolean>

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

    • src: any
    • b: Buffer
    • offset: number = 0

    Returns any

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

    • b: Buffer
    • Optional offset: number

    Returns number

  • replicate<AP>(name: AP): Layout<Record<string, boolean>, AP>
  • Type parameters

    • AP: string

    Parameters

    • name: AP

    Returns Layout<Record<string, boolean>, AP>