Class to represent an Array of Bytes received from Zenoh

Constructors

Methods

Constructors

Methods

  • return the underlying Uint8Array buffer

    Returns Uint8Array

    Uint8Array

  • Deserialize the unit8array buffer into the desired type

    Type Parameters

    • T

    Parameters

    • func: ((buffer: Uint8Array) => T)
        • (buffer): T
        • Parameters

          • buffer: Uint8Array

          Returns T

    Returns T

    Uint8Array

  • returns the length of the ZBytes buffer

    Returns number

    number