MCPcopy Create free account
hub / github.com/W4G1/multithreading / constructor

Method constructor

src/lib/json_buffer.ts:1500–1511  ·  view source on GitHub ↗
(private buffer: SharedJsonBufferImpl<any>, ptr: number)

Source from the content-addressed store, hash-verified

1498 private f64: Float64Array;
1499
1500 constructor(private buffer: SharedJsonBufferImpl<any>, ptr: number) {
1501 buffer.resolvePtr(ptr);
1502 this.len = buffer.scratchLen;
1503 this.start = buffer.scratchStart;
1504 this.u32 = buffer.u32;
1505 this.f64 = buffer.f64;
1506
1507 // Direct check: Type Array is 6
1508 if (this.u32[buffer.scratchPtr >> 2] !== 6) {
1509 throw new Error("Iterator must be used on an Array");
1510 }
1511 }
1512
1513 [Symbol.iterator]() {
1514 return this;

Callers

nothing calls this directly

Calls 1

resolvePtrMethod · 0.80

Tested by

no test coverage detected