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

When I use bytes to parse HTTP2 request headers, I sometimes get a coredump, but I don't know what the possible cause is. I'm not sure if the latest version...

I want to skip some bytes when reading. But i found the 'Bytes' not 'std::io::seek' is there any peculiar reason? Or any other method 🤔?

Some no-std targets (e.g., ARMv6-M) do not support atomic CAS operations and cannot use `Arc`, `Atomic*::compare_exchange`, etc. And on those targets, bytes currently fails to build (#461). EDIT: This PR...

You can reproduce by cloning cortex-m-quickstart and setting target accordingly in .cargo/config ``` $ rustc --version rustc 1.48.0 (7eac88abb 2020-11-16) $ cargo --version cargo 1.48.0 (65cbdd2dc 2020-10-14) ``` ``` error:...

`ptr_map` currently has a separate codepath for Miri, which is always dicy since it means the codepath used 'for real' is not actually checked by Miri. (FWIW that codepath would...

Some network protocols have dynamic length packets, so we can not have a single `buf.remaining()` check before starting parsing them. In that case before `get_*` we need to check the...

The use case is for example use Bytes create with memory from mmap. A file is mapped in memory before construct of the first bytes, and unmapped when the last...

Is the (new) inability to roundtrip between `Bytes` and `BytesMut` intentional? The inability to do so somewhat diminishes the usefulness of the reference counting feature this crate offers, if it...

When implementing `BufMut` the `BufMut::chunk_mut` method requires you to return an `UninitSlice` instance. As `UninitSlice` only has the unsafe `from_raw_parts()` constructor, this means that even if your slice is definitely...

This is a feature request for the `Buf` trait to provide an API to peek at an integer of the buffer without advancing the underlying cursor. E.g. there is [`get_u32`](https://docs.rs/bytes/0.5.4/bytes/buf/trait.Buf.html#method.get_u32)...