Function rshark::unsigned [] [src]

pub fn unsigned(buffer: &[u8], endianness: Endianness) -> Result<u64>

Parse a signed integer of a given endianness from a byte buffer.

The size of the buffer will be used to determine the size of the integer that should be parsed (u8, u16, u32 or u64), but the result will be stored in a u64.