Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/freecodexyz/free-code
/
Class
src/utils/CircularBuffer.ts:5–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
* when the buffer is full. Useful
for
maintaining a rolling window of data.
4
*/
5
export
class
CircularBuffer<T> {
6
private buffer: T[]
7
private head = 0
8
private size = 0
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected