#deque #bytes-deque

bytes_deque

A growable bytes deque in Rust, providing access to the raw pointer

2 releases

Uses new Rust 2024

new 0.2.1 Apr 8, 2025
0.2.0 Apr 8, 2025

#10 in #deque

GPL-3.0-or-later

21KB
319 lines

BytesDeque

A growable deque of u8 bytes with a simple API that provides underlying access to the raw pointer if further manipulations are required by the user.


lib.rs:

This crate implements BytesDeque, a growable deque of u8 bytes.

The use of BytesDeque is similar to std::collections::VecDeque, but its contents are always available as a slice. Other similar projects are linear-deque, vmap, slice_ring_buf, slice-ring-buffer. Our reason for writing yet another implementation is that we wanted to provide the user of the crate a means by which they can modify the raw memory themselves (and adjust the offset and length to match). Our implementation is more bare-bones compared to the other crates but it fits our needs.

No runtime deps