pub fn deserialize_u32(buffer: &[u8]) -> Result<u32, ()> {
    if buffer.len() < 4 {
        Err(())
    } else {
        Ok((buffer[0] as u32)
           | (buffer[1] as u32) << 8
           | (buffer[2] as u32) << 16
           | (buffer[3] as u32) << 24)
    }
}
/// Extract a 32-bit unsigned integer from a buffer.
Extract a 32-bit unsigned integer from a buffer.
Extract a 32 - bit unsigned integer from a buffer .
pub fn deserialize_u32(buffer: &[u8]) -> Result<u32, ()> {
    if buffer.len() < 4 {
        Err(())
    } else {
        Ok((buffer[0] as u32)
           | (buffer[1] as u32) << 8
           | (buffer[2] as u32) << 16
           | (buffer[3] as u32) << 24)
    }
}
pub fn deserialize_u32 ( buffer : & [ u8 ] ) -> Result < u32 , ( ) > { if buffer . len ( ) < 4 { Err ( ( ) ) } else { Ok ( ( buffer [ 0 ] as u32 ) | ( buffer [ 1 ] as u32 ) << 8 | ( buffer [ 2 ] as u32 ) << 16 | ( buffer [ 3 ] as u32 ) << 24 ) } }
Extract a 32-bit unsigned integer from a buffer.
Extract a 32 - bit unsigned integer from a buffer .
buffer
&[u8]
buffer
&[u8]