(buff, val, offset = 0)
| 86 | } |
| 87 | |
| 88 | function writeInt16(buff, val, offset = 0) { |
| 89 | val = +val; |
| 90 | checkBounds(buff, offset, 1); |
| 91 | |
| 92 | int16Array[0] = val; |
| 93 | buff[offset++] = uInt8Int6Array[0]; |
| 94 | buff[offset++] = uInt8Int6Array[1]; |
| 95 | return offset; |
| 96 | } |
| 97 | |
| 98 | const uint16Array = new Uint16Array(1); |
| 99 | const uint8Uint16Array = new Uint8Array(uint16Array.buffer); |
nothing calls this directly
no test coverage detected