Function rshark::unsigned
[−]
[src]
pub fn unsigned<T, E>(buffer: &[u8]) -> Result<T> where T: FromPrimitive, E: ByteOrder
Parse an unsigned 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).