Class BasePbf

Base class for the Protobuf spec

Hierarchy (View Summary)

Constructors

Methods

Constructors

  • Parameters

    • buf: ArrayBuffer | Uint8Array = ...

      an optional Uint8Array to use for reading. otherwise defaults to an empty Uint8Array for writing

    Returns BasePbf

Methods

  • Destroys the PBF instance. You can still use the Pbf instance after calling this method. However, the buffer will be emptied.

    Returns void