ruffer 1.0.0

A simple overwriting ring buffer library written in Rust.
Documentation
  • Coverage
  • 10%
    1 out of 10 items documented0 out of 9 items with examples
  • Size
  • Source code size: 24.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 505.27 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • PrintPractical/ruffer
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • PrintPractical

ruffer 1.0.0

R[ing B]uffer is a simple overwriting ring buffer implementation. A RingBuffer allocates it's memory once at creation on the heap. The RingBuffer implements std::io::Read and std::io::Write for interacting with the buffer. Any size buffer can be written to the RingBuffer, just note that only the capacity of the RingBuffer will be retained. Reading data from the buffer will move the tail index, so the read data is essentially dropped. If one wants to get a copy of the data on the form of a vector, a helper function are available to easily acquire one.

Features

  • sync - A Sync implementation of the RingBuffer.

License

Apache-2.0