MCPcopy
hub / github.com/nukeop/nuclear / clear

Method clear

packages/player/src/utils/RingBuffer.ts:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 }
17
18 clear(): void {
19 this.buffer = [];
20 this.head = 0;
21 this.count = 0;
22 }
23
24 toArray(): T[] {
25 if (this.count < this.capacity) {

Callers 15

prependMethod · 0.95
handleSeekingMethod · 0.45
queue.test.tsxFile · 0.45
discovery.test.tsxFile · 0.45
RingBuffer.test.tsFile · 0.45
resetStoresFunction · 0.45
Artist.test.tsxFile · 0.45
Sources.test.tsxFile · 0.45

Calls

no outgoing calls

Tested by 1

resetStoresFunction · 0.36