Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Protobuf

Index

Constructors

Methods

Constructors

Methods

  • decode<TMessage>(buffer: Uint8Array, decoder: ((reader: Reader, length: number) => TMessage), length?: number): TMessage
  • Type Parameters

    • TMessage

    Parameters

    • buffer: Uint8Array
    • decoder: ((reader: Reader, length: number) => TMessage)
        • (reader: Reader, length: number): TMessage
        • Parameters

          • reader: Reader
          • length: number

          Returns TMessage

    • length: number = -1

    Returns TMessage

  • encode<TMessage>(message: TMessage, encoder: ((message: TMessage, writer: Writer) => void)): Uint8Array
  • Type Parameters

    • TMessage

    Parameters

    • message: TMessage
    • encoder: ((message: TMessage, writer: Writer) => void)
        • (message: TMessage, writer: Writer): void
        • Parameters

          • message: TMessage
          • writer: Writer

          Returns void

    Returns Uint8Array

Generated using TypeDoc