encode_choice_idx

Function encode_choice_idx 

Source
pub fn encode_choice_idx(
    data: &mut PerCodecData,
    lb: i128,
    ub: i128,
    is_extensible: bool,
    idx: i128,
    extended: bool,
) -> Result<(), PerCodecError>
Expand description

Encode a Choice Index

During Encoding a ‘CHOICE’ Type to help decoding, the ‘CHOICE’ Index is encoded first, followed by the actual encoding of the ‘CHOICE’ variant.