Function tarrasque::be_f32
[−]
[src]
pub fn be_f32(bytes: &[u8]) -> f32
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);