Fixed Circular Buffer
A tiny, fast and heap safe singly-linked list of fixed-size (2048) circular buffers.
Installation
# npm npm install fixed-circular-buffer # yarn yarn add fixed-circular-buffer
Usage
const CircularBuffer = const Q = Q Qsize // 1Qlength // 2048 Q // 'xyz'Q // null let i = 2049 // data itemswhile i > 0 Q Qsize // 2049Qlength // 4096
Tests
Run tests as follows:
npm run test
License
Copyright © 2018-present Alex Masterov <alex.masterow@gmail.com>
Fixed Circular Buffer is licensed under MIT and can be used for any personal or commercial project.