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: 3 months ago
JSON representation
Circular buffers backed by littlefs files, for resource-constrained devices
- Host: GitHub
- URL: https://github.com/tniessen/littlefs-ringbuffer
- Owner: tniessen
- License: mit
- Created: 2021-11-20T18:54:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-02T19:58:43.000Z (8 months ago)
- Last Synced: 2025-03-29T04:11:21.434Z (4 months ago)
- Topics: circular-buffer, embedded, littlefs, ring-buffer
- Language: C
- Homepage:
- Size: 19.5 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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