Skip to main content

Module bytes

Module bytes 

Source
Expand description

Bytes — a binary field that travels as a CBOR byte string (major type 2), projected to/from the canonical {"$bytes":"<base64>"} envelope on JSON transports. See the native binary encoding design (§3, §5.1).

Structs§

Bytes
A binary value. Serializes to a CBOR byte string and deserializes only from a CBOR byte string — i.e. the {"$bytes":"<base64>"} envelope on JSON transports. A bare string is rejected: a string is text, not bytes.