Function read_uint40_from

Source
pub fn read_uint40_from<R: Read>(reader: &mut R) -> Result<u64>
Expand description

Read a 40-bit unsigned integer from a cursor (little-endian)

This is a convenience function for use with std::io::Cursor or BufReader.

§Arguments

  • reader - A reader implementing std::io::Read

§Returns

  • The 40-bit value as a u64

§Errors

  • Returns error if unable to read 5 bytes