Function rusticata_macros::macros::bytes_to_u64 [−][src]
pub fn bytes_to_u64(s: &[u8]) -> Result<u64, &'static str>
👎 Deprecated since 3.0.1:
please use be_var_u64
instead
Expand description
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.