fn array_to_int(array: &[u8]) -> u32 {
    ((array[0] as u32) << 12)
        + ((array[1] as u32) << 8)
        + ((array[2] as u32) << 4)
        + (array[3] as u32)
}
/// Takes first 4 bytes and returns an unsigned int
Takes first 4 bytes and returns an unsigned int
Takes first 4 bytes and returns an unsigned int
fn array_to_int(array: &[u8]) -> u32 {
    ((array[0] as u32) << 12)
        + ((array[1] as u32) << 8)
        + ((array[2] as u32) << 4)
        + (array[3] as u32)
}
fn array_to_int ( array : & [ u8 ] ) -> u32 { ( ( array [ 0 ] as u32 ) << 12 ) + ( ( array [ 1 ] as u32 ) << 8 ) + ( ( array [ 2 ] as u32 ) << 4 ) + ( array [ 3 ] as u32 ) }
Takes first 4 bytes and returns an unsigned int
Takes first 4 bytes and returns an unsigned int
array
&[u8]
array
&[u8]