cborrs::cbordet

Function cbor_det_mk_byte_string

Source
pub fn cbor_det_mk_byte_string<'a>(s: &'a [u8]) -> Option<CborDet<'a>>
Expand description

Constructs a Deterministic CBOR object of “byte string” type, with the contents of s as value. This function does not perform any copy of its input s. It returns None if the byte size of s is larger than $2^64 - 1$, Some(object) otherwise.