pub fn read_varu64(buf: &[u8]) -> Result<(u64, usize), TlvError>Expand description
Read a variable-width unsigned integer (NDN varint encoding).
- 1 byte if value < 253
- 3 bytes if value < 65536 (marker 0xFD + 2 bytes big-endian)
- 5 bytes if value < 2^32 (marker 0xFE + 4 bytes big-endian)
- 9 bytes otherwise (marker 0xFF + 8 bytes big-endian)