@internal
(charCode: number)
| 78 | |
| 79 | /** @internal */ |
| 80 | function getBase64Code(charCode: number) { |
| 81 | if (charCode >= base64codes.length) { |
| 82 | throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`) |
| 83 | } |
| 84 | |
| 85 | const code = base64codes[charCode] |
| 86 | if (code === 255) { |
| 87 | throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`) |
| 88 | } |
| 89 | |
| 90 | return code |
| 91 | } |
| 92 | |
| 93 | /** @internal */ |
| 94 | const base64abc = [ |