MCPcopy
hub / github.com/jvilk/BrowserFS / arrayBuffer2Buffer

Function arrayBuffer2Buffer

src/core/util.ts:121–123  ·  view source on GitHub ↗
(ab: ArrayBuffer)

Source from the content-addressed store, hash-verified

119 * @hidden
120 */
121export function arrayBuffer2Buffer(ab: ArrayBuffer): Buffer {
122 return Buffer.from(ab);
123}
124
125/**
126 * Copies a slice of the given buffer

Callers 5

_makeFileMethod · 0.90
getMethod · 0.90
openMethod · 0.90
uint8Array2BufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected