(num: number)
| 171 | } |
| 172 | |
| 173 | function int2bytes(num: number) { |
| 174 | const buf = new ArrayBuffer(8); |
| 175 | const dataView = new DataView(buf); |
| 176 | dataView.setUint32(0, (num / 4294967296) | 0); // 4294967296 == 2^32 |
| 177 | dataView.setUint32(4, num | 0); |
| 178 | return buf; |
| 179 | } |
| 180 | |
| 181 | export function is_mobile() { |
| 182 | // @ts-ignore |
no outgoing calls
no test coverage detected
searching dependent graphs…