(array_buffer)
| 14 | |
| 15 | /** @type {(array_buffer: ArrayBuffer) => string} */ |
| 16 | export function encode_buffer(array_buffer) { |
| 17 | return Buffer.from(array_buffer).toString('base64'); |
| 18 | } |
| 19 | |
| 20 | /** @type {(base64: string) => ArrayBuffer} */ |
| 21 | export function decode_buffer(base64) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…