Crate pluginop_octets

Source
Expand description

Zero-copy abstraction for parsing and constructing network packets.

Structs§

BufferTooShortError
An error indicating that the provided OctetsMut is not big enough.
Octets
A zero-copy immutable byte buffer.
OctetsMut
A zero-copy mutable byte buffer.
OctetsMutPtr
A (safe) raw pointer to an pinned OctetsMut.
OctetsPtr
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.

Type Aliases§

Result
A specialized Result type for OctetsMut operations.