Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Layout<T, P>

Type parameters

  • T = any

  • P = ""

Hierarchy

  • Layout

Index

Properties

property?: P
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>