MCPcopy Create free account
hub / github.com/freecodexyz/free-code / constructor

Method constructor

src/utils/CircularBuffer.ts:10–12  ·  view source on GitHub ↗
(private capacity: number)

Source from the content-addressed store, hash-verified

8 private size = 0
9
10 constructor(private capacity: number) {
11 this.buffer = new Array(capacity)
12 }
13
14 /**
15 * Add an item to the buffer. If the buffer is full,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected