Function tarrasque::be_f64

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

Returns the first eight bytes in the supplied slice as a big-endian f64.

Example

let bytes = &[64, 9, 33, 251, 84, 68, 45, 24];
assert_eq!(be_f64(bytes), std::f64::consts::PI);