MCPcopy Index your code
hub / github.com/nodejs/node / ReadDataFromBuffer

Function ReadDataFromBuffer

deps/v8/test/mjsunit/typedarray-helpers.js:120–127  ·  view source on GitHub ↗
(ab, ctor)

Source from the content-addressed store, hash-verified

118}
119
120function ReadDataFromBuffer(ab, ctor) {
121 let result = [];
122 const ta = new ctor(ab, 0, ab.byteLength / ctor.BYTES_PER_ELEMENT);
123 for (let item of ta) {
124 result.push(Number(item));
125 }
126 return result;
127}
128
129function WriteToTypedArray(array, index, value) {
130 if (array instanceof BigInt64Array ||

Callers 3

TestFillFunction · 0.85
TestFillFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…