(value)
| 3 | import { assert, assertArgument } from "./errors.js"; |
| 4 | import { getBytes } from "./data.js"; |
| 5 | function hexlifyByte(value) { |
| 6 | let result = value.toString(16); |
| 7 | while (result.length < 2) { |
| 8 | result = "0" + result; |
| 9 | } |
| 10 | return "0x" + result; |
| 11 | } |
| 12 | function unarrayifyInteger(data, offset, length) { |
| 13 | let result = 0; |
| 14 | for (let i = 0; i < length; i++) { |