Expand description
§ndn-tlv – TLV encoding foundation for NDN
Implements the NDN Type-Length-Value wire format used by all other crates
in the ndn-rs workspace. Parsing is zero-copy over bytes::Bytes buffers.
§Key types
TlvReader– zero-copy, streaming TLV parser over byte slices.TlvWriter– growable encoder that produces wire-formatBytesMut.read_varu64/write_varu64– NDN variable-width integer codec.TlvError– error type for malformed or truncated input.
§Feature flags
std(default) – enablesstdsupport inbytes. Disable forno_stdenvironments (an allocator is still required).
Re-exports§
Modules§
Functions§
- read_
varu64 - Read a variable-width unsigned integer (NDN varint encoding).
- varu64_
size - Returns the number of bytes needed to encode
valueas a varint. - write_
varu64 - Write a variable-width unsigned integer into
buf. Returns the number of bytes written.