Function decode

Source
pub fn decode<T: Decode>(input: &[u8]) -> Result<T, DecodeError>
Expand description

Attempts to decode T from input using OER.

ยงErrors

Returns DecodeError if input is not valid COER encoding specific to the expected type.