RingBuffer

Circular buffer implementation

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install RingBuffer
choosenim install RingBuffer
git clone https://github.com/megawac/RingBuffer.nim.git

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
RingBuffer - - - - - - -

Source

Repository https://github.com/megawac/RingBuffer.nim.git
Homepage https://github.com/megawac/RingBuffer.nim
Registry Source nimble_official

README

Nim implementation of Circular buffers Build Status

Documentation

A circular buffer, cyclic buffer or ring buffer is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end. This structure lends itself easily to buffering data streams.

Wikipedia

Usage

var b = newRingBuffer[int](5)

b.add([1, 2, 3, 4, 5])
b.add(6)
b.add([7, 8])

@b == [4, 5, 6, 7, 8]