Available on crate feature
wire only.Modules§
- trailer 🔒
Structs§
- Bytes
Reader - Reads a “bytes wire packet” from the underlying reader. The format is the same as in crate::wire::bytes::read_bytes, however this structure provides a AsyncRead interface, allowing to not having to pass around the entire payload in memory.
Enums§
- State 🔒
Functions§
- split_
user_ 🔒len - Split the
user_lenintobody_lenandtail_len, which are respectively the non-terminal 8-byte blocks, and the ≤8 bytes of user data contained in the trailer block. - with_
limited 🔒 - Make a limited version of
buf, consisting only of up tonbytes of the unfilled section, and callfwith it. Afterfreturns, we propagate the filled cursor advancement back tobuf.