#buffer #fifo #queue

ringtail

Efficient ring buffer for byte buffers, FIFO queues, and SPSC channels

6 releases

Uses old Rust 2015

0.3.0 Aug 10, 2018
0.2.2 Aug 3, 2018
0.2.0 May 17, 2018
0.1.1 Feb 24, 2018

#12 in #fifo

Download history 6/week @ 2021-09-27 1/week @ 2021-10-04 9/week @ 2021-10-11 21/week @ 2021-10-25 31/week @ 2021-11-01 42/week @ 2021-11-08 42/week @ 2021-11-15 52/week @ 2021-11-22 50/week @ 2021-11-29 44/week @ 2021-12-06 45/week @ 2021-12-13 42/week @ 2021-12-20 43/week @ 2021-12-27 49/week @ 2022-01-03 53/week @ 2022-01-10

195 downloads per month

MIT license

32KB
748 lines

Ringtail

Efficient ring buffer implementations for byte buffers, FIFO queues, and SPSC channels.

Build Status Crates.io Documentation License

Documentation

Installation

Add this to your Cargo.toml file:

[dependencies]
ringtail = "0.2"

License

This library is licensed under the MIT license. See the LICENSE file for details.


lib.rs:

Ringtail is a collection of buffers and queues, useful for networking, thread communication, and real-time programming.

Provided data structures are designed for efficiency first and foremost, so some common operations you might expect of queues may be missing in order to allow certain optimizations. These are not general-purpose structures; several versions of one structure may be provided with different trade-offs.

Buffers

In Ringtail, a buffer is a queue optimized for reading and writing multiple elements in bulk, like an in-memory version of an I/O stream.

No runtime deps