Expand description
Zero-copy abstraction for parsing and constructing network packets.
Structs§
- Buffer
TooShort Error - An error indicating that the provided
OctetsMut
is not big enough. - Octets
- A zero-copy immutable byte buffer.
- Octets
Mut - A zero-copy mutable byte buffer.
- Octets
MutPtr - A (safe) raw pointer to an pinned
OctetsMut
. - Octets
Ptr - A (safe) raw pointer to an pinned
Octets
.
Functions§
- varint_
len - Returns how many bytes it would take to encode
v
as a variable-length integer. - varint_
parse_ len - Returns how long the variable-length integer is, given its first byte.