()
| 3299 | } |
| 3300 | |
| 3301 | function initTwoCharsToIntMap(): object { |
| 3302 | const obj = {}; |
| 3303 | for (let i = 0; i < 256; i++) { |
| 3304 | const key = i.toString(16).padStart(2, '0'); |
| 3305 | obj[key] = i; |
| 3306 | } |
| 3307 | return obj; |
| 3308 | } |
| 3309 | |
| 3310 | const twoCharsToIntMap = initTwoCharsToIntMap(); |
| 3311 |