Skip to main content

encode_float_single

Function encode_float_single 

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

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

ยงErrors

Returns CBKE510_NUMERIC_OVERFLOW if the buffer has fewer than 4 bytes.