MCPcopy Create free account
hub / github.com/sveltejs/devalue / encode_buffer

Function encode_buffer

src/base64.js:16–18  ·  view source on GitHub ↗
(array_buffer)

Source from the content-addressed store, hash-verified

14
15/** @type {(array_buffer: ArrayBuffer) => string} */
16export function encode_buffer(array_buffer) {
17 return Buffer.from(array_buffer).toString('base64');
18}
19
20/** @type {(base64: string) => ArrayBuffer} */
21export function decode_buffer(base64) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…