(ab, ctor)
| 118 | } |
| 119 | |
| 120 | function 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 | |
| 129 | function WriteToTypedArray(array, index, value) { |
| 130 | if (array instanceof BigInt64Array || |
no test coverage detected
searching dependent graphs…