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

Method get

browse/src/buffers.ts:79–82  ·  view source on GitHub ↗

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

(index: number)

Source from the content-addressed store, hash-verified

77
78 /** Get entry by index (0 = oldest) — used by network response matching */
79 get(index: number): T | undefined {
80 if (index < 0 || index >= this._size) return undefined;
81 return this.buffer[(this.head + index) % this.capacity];
82 }
83
84 /** Set entry by index (0 = oldest) — used by network response matching */
85 set(index: number, entry: T): void {

Callers 15

resolveGbrainBinFunction · 0.45
readGbrainVersionFunction · 0.45
harvestMethod · 0.45
cleanupMethod · 0.45
getInfoMethod · 0.45
daemon.test.tsFile · 0.45
withBoardMutexFunction · 0.45
fetchHandlerFunction · 0.45
generateVariantFunction · 0.45
endMethod · 0.45

Calls

no outgoing calls

Tested by 3

probeUnionFunction · 0.36
fetchFunction · 0.36
getSessionCookieFunction · 0.36