rocket::mtls::x509::der_parser::rusticata_macros::combinator

Function bytes_to_u64

Source
pub fn bytes_to_u64(s: &[u8]) -> Result<u64, &'static str>
👎Deprecated since 3.0.1: please use be_var_u64 instead
Available on crate feature mtls only.
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.