(value: Int32Array)
| 88 | * tensor through binding. |
| 89 | */ |
| 90 | export function encodeInt32ArrayAsInt64(value: Int32Array): Int32Array { |
| 91 | if (endianness() !== 'LE') { |
| 92 | throw new Error( |
| 93 | `Int64Scalar does not support endianness of this machine: ` + |
| 94 | `${endianness()}`); |
| 95 | } |
| 96 | |
| 97 | const buffer = new Int32Array(value.length * 2); |
| 98 | for (let i = 0; i < value.length; i++) { |
| 99 | buffer[i * 2] = value[i]; |
| 100 | } |
| 101 | return buffer; |
| 102 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…