pub fn decode( ty: &Type, types: &TypeTable, reader: &mut Reader<'_>, ) -> Result<Value, CodecError>
Decode and validate a value of type ty.
ty