decode

Function decode 

Source
pub fn decode(data: &[u8]) -> Result<Params, Box<ParseError>>
Expand description

Decodes a byte slice into a GTV value

§Arguments

  • data - Byte slice containing the encoded GTV data

§Returns

  • Result<Params, ParseError> - The decoded value or an error if decoding fails