/// Read the value of a vector of bytes as a u32 value in little-endian format.
Read the value of a vector of bytes as a u32 value in little-endian format.
Read the value of a vector of bytes as a u32 value in little - endian format .
pub fn read_u32_le(input: &[u8]) -> u32 {
    assert!(input.len() == 4);
    unsafe {
        let mut tmp: u32 = mem::uninitialized();
        ptr::copy_nonoverlapping(input.get_unchecked(0),
                                 &mut tmp as *mut _ as *mut u8,
                                 4);
        u32::from_le(tmp)
    }
}
pub fn read_u32_le ( input : & [ u8 ] ) -> u32 { assert ! ( input len ( ) 4 ) ; unsafe { let mut tmp : u32 = mem :: uninitialized ( ) ; ptr :: copy_nonoverlapping ( input . get_unchecked ( 0 ) , & mut tmp as * mut _ as * mut u8 , 4 ) ; u32 :: from_le ( tmp ) } }
Read the value of a vector of bytes as a u32 value in little-endian format.
Read the value of a vector of bytes as a u32 value in little - endian format .
input
&[u8]