Skip to content

Commit dc2d64b

Browse files
Lucassaghul
andcommitted
add btoa()/atob() builtins
- Introduce global btoa() and atob() functions - Encoder: fast 12-bit pair-LUT, ~3.6 GB/s - Decoder: branchless streaming form, ~0.65 GB/s scalar - Tolerant to whitespace, validates padding and invalid input - Minimal allocations: only one malloc if input is wide-char - Fully compliant with DOMException Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net>
1 parent 01bce21 commit dc2d64b

3 files changed

Lines changed: 906 additions & 9 deletions

File tree

0 commit comments

Comments
 (0)