Function asn_codecs::aper::decode::decode_enumerated [−][src]
pub fn decode_enumerated(
data: &mut AperCodecData,
lb: Option<i128>,
ub: Option<i128>,
is_extensible: bool
) -> Result<(i128, bool), AperCodecError>
Expand description
Decode an Enumerated Value
Decodes an Enumerated value as an index into either root_values
of the ENUMERATED or
ext_values
of the ENUMERATED and also decodes a flag indicating where the value velongs. If
false
the value is from the root_values
, else the value is from the ext_values
of the
ENUMERATED.