MCPcopy
hub / github.com/di-sukharev/opencommit / arrayBuffer

Method arrayBuffer

out/cli.cjs:6012–6016  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6010 return Promise.resolve(this[BUFFER].toString());
6011 }
6012 arrayBuffer() {
6013 const buf = this[BUFFER];
6014 const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
6015 return Promise.resolve(ab);
6016 }
6017 stream() {
6018 const readable = new Readable5();
6019 readable._read = function() {

Callers 10

consumeNodeBlobFunction · 0.45
matchFunction · 0.45
arrayBufferMethod · 0.45
writeBlobFunction · 0.45
sendMethod · 0.45
getBytesFunction · 0.45
cli.cjsFile · 0.45
getBodyLengthFunction · 0.45
getBytes2Function · 0.45
methodRequestMethod · 0.45

Calls 3

consumeBlobPartsFunction · 0.85
sliceMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected