MCPcopy
hub / github.com/remotely-save/remotely-save / arrayBufferToBuffer

Function arrayBufferToBuffer

src/misc.ts:101–103  ·  view source on GitHub ↗
(b: ArrayBuffer)

Source from the content-addressed store, hash-verified

99 * @returns
100 */
101export const arrayBufferToBuffer = (b: ArrayBuffer) => {
102 return Buffer.from(b);
103};
104
105export const arrayBufferToBase64 = (b: ArrayBuffer) => {
106 return arrayBufferToBuffer(b).toString("base64");

Callers 2

arrayBufferToBase64Function · 0.85
arrayBufferToHexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected