(buffer)
| 257 | }, |
| 258 | |
| 259 | _arrayBufferToBase64(buffer) { |
| 260 | const binary = []; |
| 261 | const bytes = new Uint8Array(buffer); |
| 262 | for (let i = 0; i < bytes.byteLength; i++) |
| 263 | binary.push(String.fromCharCode(bytes[i])); |
| 264 | return btoa(binary.join("")); |
| 265 | }, |
| 266 | |
| 267 | _base64ToArrayBuffer(base64) { |
| 268 | const binaryString = atob(base64); |
nothing calls this directly
no outgoing calls
no test coverage detected