Function rusticata_macros::macros::bytes_to_u64 [] [src]

pub fn bytes_to_u64(s: &[u8]) -> Result<u64, &'static str>

Read an entire slice as a big-endian value.

Returns the value as u64. This function checks for integer overflows, and returns a Result::Err value if the value is too big.