Available on crate feature
bytes only.Expand description
One bytes type to rule them all!
TODO(parkertimmerman): Ideally we don’t implement this “bytes type” on our own
and use something else, e.g. SegmentedBuf from the bytes-utils crate. Currently
that type, nor anything else, implement std::io::Read and std::io::Seek, which
we need. We have an open issue with the bytes-utils crate, https://github.com/vorner/bytes-utils/issues/16
to add these trait impls.
Modules§
- internal 🔒
Structs§
- Segmented
Bytes - A cheaply clonable collection of possibly non-contiguous bytes.
Constants§
- PADDING_
DEFAULT 🔒 - Default value used for
Padding.
Type Aliases§
- Padding 🔒
- We add
Paddingto segments to prevent needing to re-allocate our collection when creating aSegmentedReader.