MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / append

Method append

src/workspaces/replay-buffer.ts:50–55  ·  view source on GitHub ↗
(chunk: Buffer)

Source from the content-addressed store, hash-verified

48 }
49
50 append(chunk: Buffer): void {
51 if (chunk.length === 0) return;
52 this.chunks.push(chunk);
53 this.totalBytes += chunk.length;
54 this.evict();
55 }
56
57 since(seq: number): ReplaySlice {
58 const effectiveSeq = Math.max(seq, this.head);

Callers

nothing calls this directly

Calls 2

evictMethod · 0.95
pushMethod · 0.65

Tested by

no test coverage detected