Module read

Source
Expand description

Helpers for reading crate::nar::wire format.

Functionsยง

bytes
Consume a byte string of up to max_len bytes from the reader.
bytes_buf
Consume a byte string from the reader into a provided buffer, returning the data bytes.
tag
Consume a Tag from the reader.
token
Consume a known token from the reader.
u64
Consume a little-endian u64 from the reader.