Skip to main content

encode

Function encode 

Source
pub fn encode(value: &CborValue) -> Vec<u8> ⓘ
Expand description

Encode a CBOR value to bytes, with definite lengths and every float as a 64-bit double. (A generic encoder shrinks floats to half/single precision when lossless, but SDK decoders built without half-float support reject a 16-bit float where the schema says double.)