Function rocket::mtls::x509::der_parser::rusticata_macros::macros::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
insteadAvailable 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.