Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • P: string = ""

Hierarchy

Index

Constructors

  • new BNLayout<P>(span: number, signed: boolean, property?: P): BNLayout<P>
  • Type parameters

    • P: string = ""

    Parameters

    • span: number
    • signed: boolean
    • Optional property: P

    Returns BNLayout<P>

Properties

blob: Layout<Buffer, "">
property?: P
signed: boolean
span: number

Methods

  • decode(b: Buffer, offset?: number): BN
  • override

    Parameters

    • b: Buffer
    • offset: number = 0

    Returns BN

  • encode(src: BN, b: Buffer, offset?: number): number
  • override

    Parameters

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

    Returns number

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

    • b: Buffer
    • Optional offset: number

    Returns number

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

    • AP: string

    Parameters

    • name: AP

    Returns Layout<BN, AP>