/// Splits the first four bytes of a slice off and interpret them as a little-endian u32.
Splits the first four bytes of a slice off and interpret them as a little-endian u32.
Splits the first four bytes of a slice off and interpret them as a little - endian u32 .
fn read_ne_u32(input: &mut &[u8]) -> u32 {
    let (int_bytes, rest) = input.split_at(std::mem::size_of::<u32>());
    *input = rest;
    u32::from_ne_bytes(int_bytes.try_into().unwrap())
}
fn read_ne_u32 ( input : & mut & [ u8 ] ) -> u32 { let ( int_bytes , rest ) = input . split_at ( std :: mem :: size_of :: < u32 > ( ) ) ; * input = rest ; u32 :: from_ne_bytes ( int_bytes . try_into ( ) . unwrap ( ) ) }
Splits the first four bytes of a slice off and interpret them as a little-endian u32.
Splits the first four bytes of a slice off and interpret them as a little - endian u32 .
input
&mut &[u8]