MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / IsDetachedBuffer

Function IsDetachedBuffer

out/cli.cjs:11036–11043  ·  view source on GitHub ↗
(O5)

Source from the content-addressed store, hash-verified

11034 return TransferArrayBuffer(O5);
11035 };
11036 let IsDetachedBuffer = (O5) => {
11037 if (typeof O5.detached === "boolean") {
11038 IsDetachedBuffer = (buffer) => buffer.detached;
11039 } else {
11040 IsDetachedBuffer = (buffer) => buffer.byteLength === 0;
11041 }
11042 return IsDetachedBuffer(O5);
11043 };
11044 function ArrayBufferSlice(buffer, begin, end) {
11045 if (buffer.slice) {
11046 return buffer.slice(begin, end);

Callers 4

respondMethod · 0.85
respondWithNewViewMethod · 0.85
readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…