MCPcopy Create free account
hub / github.com/MathMan05/Fermi / getBuffer

Method getBuffer

src/webpage/utils/binaryUtils.ts:92–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91 }
92 getBuffer() {
93 const buf = new ArrayBuffer(this.i);
94 const ar1 = new Uint8Array(buf);
95 const ar2 = new Uint8Array(this.buffer);
96 for (let i in ar1) {
97 ar1[+i] = ar2[+i];
98 }
99 return buf;
100 }
101}
102export {BinRead, BinWrite};

Callers 1

page.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected