[][src]Function il2_ilint::decode

pub fn decode(value: &[u8]) -> Result<(u64, usize)>

Decodes an ILInt value.

Arguments:

  • value: The ILInt value;

Returns:

  • Ok(value,size): The decoded value and the number of bytes used.
  • Err(ErrorKind::InsufficientBuffer): If the buffer is too small to hold the encoded value.
  • Err(ErrorKind::Overflow): If the encoded value is larger than the maximum allowed value.