mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-10 00:00:09 +02:00
cf5a1bc4f13ea3f066d2b1cf34ab68feb1a744b9
Bytes / BytesMut core implementation
The previous implementation didn't factor in a single `Bytes` handle being stored in an `Arc`. This new implementation correctly impelments both `Bytes` and `BytesMut` such that both are `Sync`. The rewrite also increases the number of bytes that can be stored inline.
Bytes
A utility library for working with bytes.
Usage
To use bytes, first add this to your Cargo.toml:
[dependencies.bytes]
git = "https://github.com/carllerche/bytes"
Languages
Rust
99.6%
Shell
0.4%