bytes icon indicating copy to clipboard operation
bytes copied to clipboard

Utilities for working with bytes

Results 130 bytes issues
Sort by recently updated
recently updated
newest added

Variable-length integer encoding (protobuf style) is present in many network and file protocols. While it is not at the same level of 'standard' as LE / BE encoding, I would...

Is there a way to align BytesMut to page boundary? My app uses buffers that are a multiplicity of 4 KiB. I guess that might help with fragmentation. The default...

Currently the `no_std` support for the crate still depends on `alloc`. However, this is only required for `Bytes` and `BytesMut` data structures and not `Buf` and `BufMut` traits or its...

The goal of this PR is to continue the work of PR #567. This updates the code to be more conformant to the idioms of Rust and the Tokio project....

Implementing BufMut for RefMut

`.reserve` employs some heuristics, which are subject to change, to determine whether it's going to move the data or reallocate. A user concerned with memory usage might want to do...

Currently, `BytesMut` seems to require buffer allocation when converted from other types: https://docs.rs/bytes/latest/src/bytes/bytes_mut.rs.html#1172 Is there any reason not to provide allocation-free `BytesMut` constructor like https://docs.rs/bytes/latest/src/bytes/bytes.rs.html#843? (I'd like to use `Box`...

I'm using bytes in an application, where I'm repeatedly slicing to sub-parts of the bytes. I do my own error-checking of bounds, and handle that out of the hot path....

When I use bytes, I sometimes get a coredump, but I don't know what the possible cause is. Bytes version: 0.5.6 Where to use bytes in my project: - my...