Skip to main content

read_f32

Function read_f32 

Source
pub fn read_f32(bytes: &[u8], offset: usize) -> Result<f32, BinaryLayoutError>
Expand description

Reads little-endian f32 at offset.

ยงErrors

BinaryLayoutError::UnexpectedEof when fewer than four bytes remain. Any four bytes decode, NaN and the infinities included.