Function cborEncode

  • Encodes a value into a dCBOR (Deterministic Concise Binary Object Representation) byte array. Undefined fields in plain objects are automatically removed before encoding.

    Returns

    A Uint8Array containing the CBOR-encoded data.

    Parameters

    • value: unknown

      The value to encode into CBOR format.

    Returns Uint8Array

Generated using TypeDoc