(arg)
| 100 | } |
| 101 | |
| 102 | function asUint8Array(arg) { |
| 103 | if (ArrayBuffer.isView(arg)) { |
| 104 | return new Uint8Array(arg.buffer, arg.byteOffset, arg.byteLength); |
| 105 | } else { |
| 106 | return new Uint8Array(arg); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | const prepareBuffer = (buffer, offset, length) => |
| 111 | asUint8Array(buffer).subarray(offset, offset + length); |
no outgoing calls
no test coverage detected
searching dependent graphs…