pub fn encode_id(id: u32, out: &mut Vec<u8>)Expand description
Encode an element ID (marker bits already included, matching
decode_id’s raw representation) into out, using the minimal byte
length that holds the value without a leading zero byte.
Never panics: id == 0 has no valid EBML representation (every ids
constant this crate writes is non-zero), but rather than panic on
caller misuse this writes a single 0x00 byte — round-trips back to
Error::ReservedVint on decode instead of crashing the writer.