Use collect s to bind in sequence every monad value in the finite sequence s and collect all the returned values. Returns (n, s) where n is the number of values collected and s is the list of values in reverse order, i.e. from last collected to first collected. Never returns and exhausts all memory if s never terminates.
Use int32 n to make the CBOR encoding of the `int32` value n. Use the ~sign argument to regard n as unsigned rather than 2's-complement, and to explicitly control the arithmetic sign of the encoded integer.
Use int64 n to make the CBOR encoding of the `int64` value n. Use the ~sign argument to regard n as unsigned rather than 2's-complement, and to explicitly control the arithmetic sign of the encoded integer.
Use float n to make the CBOR encoding of the floating point value n. If ~precision is not provided, then the most precise form required to represent n without loss is selected.
Use array s to compose the CBOR definite size array from the encodings in the list s.
val map : ?sort:unit ->(unit t * unit t) list->unit t
Use map s to compose the CBOR definite size map containing the key-value pairs encoded in the list s. Use the ~sort:() option to sort the keys according to the deterministic encoding of CBOR.
Use scheme f to make the encoding scheme that applies f to the emitted value to obtain the encoding of the sequence of CBOR events comprising its encoding.
Abstract Data
A specialization of the
f_data_render.Profile
for use with CBOR is provided here.
Containers with positional elements, e.g. vectors and records, are encoded as definite length CBOR arrays. Containers with indexed elements, e.g. tables and structures, are encoded as definite length CBOR maps.