pub fn write_length(writer: &mut ByteWriter<'_>, alternative_len: usize)Expand description
Writes the encoded_length field after the discriminant and the padding that follows it. The caller
then encodes the alternative, which must take exactly alternative_len octets.
A length above i32::MAX, which the HLAinteger32BE field cannot hold, records
EncoderError::AlternativeTooLong.