(u8_view, offset, value)
| 124 | } |
| 125 | |
| 126 | export function write64(u8_view, offset, value) { |
| 127 | if (!(value instanceof Int)) { |
| 128 | throw TypeError('write64 value must be an Int'); |
| 129 | } |
| 130 | |
| 131 | let low = value.lo; |
| 132 | let high = value.hi; |
| 133 | |
| 134 | for (let i = 0; i < 4; i++) { |
| 135 | u8_view[offset + i] = (low >>> i*8) & 0xff; |
| 136 | } |
| 137 | for (let i = 0; i < 4; i++) { |
| 138 | u8_view[offset + 4 + i] = (high >>> i*8) & 0xff; |
| 139 | } |
| 140 | } |
nothing calls this directly
no outgoing calls
no test coverage detected