Function rshark::signed
[−]
[src]
pub fn signed<T, E>(buffer: &[u8]) -> Result<T> where T: FromPrimitive, E: ByteOrder
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 (i8, i16, i32 or i64).