Function asn_codecs::aper::decode::decode_choice_idx [−][src]
pub fn decode_choice_idx(
data: &mut AperCodecData,
lb: i128,
ub: i128,
is_extensible: bool
) -> Result<(i128, bool), AperCodecError>
Expand description
Decode a Choice Index.
For an ASN.1 CHOICE
Type, a CHOICE Index is first decoded. This function is used to decode
the choice index. Returns the Index in the ‘root’ or ‘additions’ and a flag indicated whether
the value is from the ‘root_extensions’ or ‘addtions’. The caller would then decide the
appropriate decode
function for the CHOICE variant is called.