MCPcopy Create free account
hub / github.com/bitwarden/clients / bufferToArrayBuffer

Method bufferToArrayBuffer

libs/node/src/node-utils.ts:33–35  ·  view source on GitHub ↗
(buf: Buffer<ArrayBuffer>)

Source from the content-addressed store, hash-verified

31
32 // https://stackoverflow.com/a/31394257
33 static bufferToArrayBuffer(buf: Buffer<ArrayBuffer>): ArrayBuffer {
34 return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
35 }
36}

Callers 1

createSendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected