decode

Function decode 

Source
pub fn decode(input: &[u8]) -> Result<i32, Error>
Expand description

Decode a one- to four-octet two’s-complement value.

The high bit of the last octet is the sign, and the value is sign- extended from whatever width arrived.