(arr, off)
| 270 | } |
| 271 | |
| 272 | export function ReadUint32(arr, off) { |
| 273 | |
| 274 | if(arr.length < 4 || off > arr.length) //sanity check |
| 275 | throw new Error('Cannot read OOB.'); |
| 276 | |
| 277 | return parseInt("0x" + |
| 278 | arr[off].toString(16) + |
| 279 | arr[off + 1].toString(16) + |
| 280 | arr[off + 2].toString(16) + |
| 281 | arr[off + 3].toString(16) |
| 282 | ); |
| 283 | } |
| 284 | |
| 285 | export function ReadUint64(arr, off) { |
| 286 |
no outgoing calls
no test coverage detected