pub fn write_nni(w: &mut TlvWriter, typ: u64, val: u64)
Encode a non-negative integer as the minimal-width big-endian representation.