fn write_tag(output: &mut Vec<u8>, tag: u8, n: usize) {
    debug_assert!(tag as usize <= TYPE_MASK);
    assert!(
        n < MAX_DATA,
        "item data overflow, index or string size larger than MAX_DATA"
    );
    let n = u16::try_from(n << TYPE_BITS | tag as usize).unwrap();
    output.write_u16::<NativeEndian>(n).unwrap();
}
/// Helper function to write an identifier.
///
/// # Panics
///
/// Panics if the provided size cannot fit withing an identifier.
Helper function to write an identifier.
Helper function to write an identifier .
fn write_tag(output: &mut Vec<u8>, tag: u8, n: usize) {
    debug_assert!(tag as usize <= TYPE_MASK);
    assert!(
        n < MAX_DATA,
        "item data overflow, index or string size larger than MAX_DATA"
    );
    let n = u16::try_from(n << TYPE_BITS | tag as usize).unwrap();
    output.write_u16::<NativeEndian>(n).unwrap();
}
fn write_tag ( output : & mut Vec < u8 > , tag : u8 , n : usize ) { debug_assert ! ( tag as usize TYPE_MASK ) ; assert ! ( n MAX_DATA " " ) ; let n = u16 :: try_from ( n << TYPE_BITS | tag as usize ) . unwrap ( ) ; output . write_u16 :: < NativeEndian > ( n ) . unwrap ( ) ; }
Helper function to write an identifier.
Helper function to write an identifier .
output
&mut Vec<u8>
tag
u8
n
usize
output
&mut Vec<u8>
tag
u8
n
usize
panics
Panics if the provided size cannot fit withing an identifier.
Panics if the provided size cannot fit withing an identifier .