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

Method initViews

src/lib/json_buffer.ts:150–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 }
149
150 private initViews() {
151 this.u32 = new Uint32Array(this.buffer);
152 this.f64 = new Float64Array(this.buffer);
153 this.u8 = new Uint8Array(this.buffer);
154 }
155
156 private initializeBuffer(obj: T) {
157 Atomics.store(this.u32, OFFSET_FREE_PTR >> 2, HEADER_SIZE);

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected