pub fn encode_tag(
class: TagClass,
constructed: bool,
number: u8,
out: &mut Vec<u8>,
)Expand description
Encode a tag byte (or bytes for high-tag-number form).
For tags 0..=30, a single byte suffices:
[class << 6 | constructed << 5 | tag_number]
High-tag-number form (tag >= 31) is supported but uncommon.