Function tarrasque::be_f32

source ·
pub fn be_f32(bytes: &[u8]) -> f32
Expand description

Returns the first four bytes in the supplied slice as a big-endian f32.

Example

let bytes = &[64, 73, 15, 219];
assert_eq!(be_f32(bytes), std::f32::consts::PI);