(buffer: Uint8Array)
| 4 | // --- Base64 encoding/decoding --- |
| 5 | |
| 6 | export function encodeBase64(buffer: Uint8Array): string { |
| 7 | return Buffer.from(buffer).toString('base64'); |
| 8 | } |
| 9 | |
| 10 | export function decodeBase64(base64: string): Uint8Array { |
| 11 | return new Uint8Array(Buffer.from(base64, 'base64')); |
no outgoing calls