(data: Uint8Array)
| 1 | // @flow |
| 2 | |
| 3 | function base64EncodeBuffer(data: Uint8Array): string { |
| 4 | return btoa(String.fromCharCode(...data)); |
| 5 | } |
| 6 | |
| 7 | function base64DecodeBuffer(base64String: string): Uint8Array { |
| 8 | const binaryString = atob(base64String); |
no outgoing calls
no test coverage detected