(charCode: number)
| 531 | } |
| 532 | |
| 533 | function getBase64Code(charCode: number) { |
| 534 | if (charCode >= base64codes.length) { |
| 535 | throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`) |
| 536 | } |
| 537 | |
| 538 | const code = base64codes[charCode] |
| 539 | if (code === 255) { |
| 540 | throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`) |
| 541 | } |
| 542 | |
| 543 | return code |
| 544 | } |
| 545 | |
| 546 | const base64abc = [ |
| 547 | "A", |