MCPcopy
hub / github.com/garrytan/gstack / set

Method set

browse/src/buffers.ts:85–88  ·  view source on GitHub ↗

Set entry by index (0 = oldest) — used by network response matching

(index: number, entry: T)

Source from the content-addressed store, hash-verified

83
84 /** Set entry by index (0 = oldest) — used by network response matching */
85 set(index: number, entry: T): void {
86 if (index < 0 || index >= this._size) return;
87 this.buffer[(this.head + index) % this.capacity] = entry;
88 }
89}
90
91// ─── Entry Types ────────────────────────────────────────────

Callers 15

resolveGbrainBinFunction · 0.80
readGbrainVersionFunction · 0.80
createMethod · 0.80
mkFunction · 0.80
daemon.test.tsFile · 0.80
withBoardMutexFunction · 0.80
handlePublishFunction · 0.80
beginMethod · 0.80
renderFenceSlotsFunction · 0.80
inlineLocalImagesFunction · 0.80
snapshotFunction · 0.80

Calls

no outgoing calls

Tested by 6

mkFunction · 0.64
snapshotFunction · 0.64
regenAndSnapshotFunction · 0.64
makeRefsFunction · 0.64
setTabCountFunction · 0.64
mockReqFunction · 0.64