bytes icon indicating copy to clipboard operation
bytes copied to clipboard

Utilities for working with bytes

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

Hi, I have done some benchmarks based on @stbuehler fork with Unsync implementation (#200). My goal was to test it on MIPS and ARM processors. Generally, sync version shows comparable...

# Motivation The `Buf` trait is designed to provide an abstraction for reading data about of byte slice like types (`&[u8]`, `Vec`, ropes, etc...). A difficulty arises when one wishes...

Hi! It's awesome that this crate is `no-std` (it's actually being used in some firmware!) -- but we've found that when compiling for architectures without native atomics support such as...

I have a situation where I have a memory mapped file and want to pass a slice of it around unencumbered by lifetimes, but without copying. I have looked into...

This is my suggestion about constructing `Bytes` with custom vtable. Since it's not a small modification, I want to share my direction to maintainers before writing more docs or bikeshedding...

I would like to be able to shrink allocations in certain cases, but I don't immediately see how to do that. I should mention that my understanding of this crate...

*Note: The `tsan` job is failing in CI due to https://github.com/rust-lang/rust/issues/122476, which should be resolved in the next few days.* Much like https://github.com/tokio-rs/bytes/pull/675, I found a few places we can...

Fixes #657. This PR introduces the `SeekBuf` trait for buffers that support arbitrary lookups of memory, and a new `BufCursor` struct for immutably iterating over a `SeekBuf` type. `SeekBuf` is...

`BufMut` is unsafe to implement, but there are no safety requirements telling users what they need to ensure for their implementations to be sound. It looks like https://github.com/tokio-rs/bytes/issues/329 lists out...