(buff, val, offset = 0)
| 196 | } |
| 197 | |
| 198 | function writeFloat(buff, val, offset = 0) { |
| 199 | val = +val; |
| 200 | checkBounds(buff, offset, 3); |
| 201 | |
| 202 | float32Array[0] = val; |
| 203 | buff[offset++] = uInt8Float32Array[0]; |
| 204 | buff[offset++] = uInt8Float32Array[1]; |
| 205 | buff[offset++] = uInt8Float32Array[2]; |
| 206 | buff[offset++] = uInt8Float32Array[3]; |
| 207 | return offset; |
| 208 | } |
| 209 | |
| 210 | const float64Array = new Float64Array(1); |
| 211 | const uInt8Float64Array = new Uint8Array(float64Array.buffer); |
nothing calls this directly
no test coverage detected