pub fn decode(input: &[u8]) -> Result<i32, Error>
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.