Encodes a value into a dCBOR (Deterministic Concise Binary Object Representation) byte array. Undefined fields in plain objects are automatically removed before encoding.
A Uint8Array containing the CBOR-encoded data.
The value to encode into CBOR format.
Generated using TypeDoc
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.