Skip to main content

encode_float_double

Function encode_float_double 

Source
pub fn encode_float_double(value: f64, buffer: &mut [u8]) -> Result<()>
Expand description

Encode a COMP-2 float with default IEEE-754 big-endian format.

ยงErrors

Returns CBKE510_NUMERIC_OVERFLOW if the buffer has fewer than 8 bytes.