Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tniessen/littlefs-ringbuffer

Circular buffers backed by littlefs files, for resource-constrained devices
https://github.com/tniessen/littlefs-ringbuffer

circular-buffer embedded littlefs ring-buffer

Last synced: 2 months ago
JSON representation

Circular buffers backed by littlefs files, for resource-constrained devices

Awesome Lists containing this project

README

        

# littlefs ring buffers

[Circular buffers][] backed by [littlefs][] files.

This library consists of a single header file and a single source file that
implement a simple circular data structure. Similar to littlefs itself, the
implementation focuses on memory efficiency (adding only a few bytes on top of
the required littlefs data structures) and reliability.

## Modes of operation

Ring buffers support two modes of operation. In "stream" mode, all data is
a contiguous sequence of bytes. In "object" mode, the implementation dynamically
partitions the buffer to store separate objects, which are variable-length
sequences of bytes themselves.

[Circular buffers]: https://en.wikipedia.org/wiki/Circular_buffer
[littlefs]: https://github.com/littlefs-project/littlefs