(buff, val, offset = 0)
| 138 | } |
| 139 | |
| 140 | function writeInt32(buff, val, offset = 0) { |
| 141 | val = +val; |
| 142 | checkBounds(buff, offset, 3); |
| 143 | |
| 144 | int32Array[0] = val; |
| 145 | buff[offset++] = uint8Int32Array[0]; |
| 146 | buff[offset++] = uint8Int32Array[1]; |
| 147 | buff[offset++] = uint8Int32Array[2]; |
| 148 | buff[offset++] = uint8Int32Array[3]; |
| 149 | return offset; |
| 150 | } |
| 151 | |
| 152 | const uint32Array = new Uint32Array(1); |
| 153 | const uint8Uint32Array = new Uint8Array(uint32Array.buffer); |
nothing calls this directly
no test coverage detected