Skip to main content

decode_big_int_caster

Function decode_big_int_caster 

Source
pub fn decode_big_int_caster(bytes: &[u8]) -> Result<Option<BigInt>, CoreError>
Expand description

Decodes bytes encoded with Go’s BigIntCaster format.

Returns:

  • Ok(None) for the Go nil representation [0]
  • Ok(Some(_)) for zero and non-zero encoded values
  • Err(_) for malformed encodings