MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / getTotalLength

Function getTotalLength

out/cli.cjs:75756–75767  ·  view source on GitHub ↗
(sources)

Source from the content-addressed store, hash-verified

75754 if (source instanceof Uint8Array) {
75755 return source.byteLength;
75756 } else if (isBlob3(source)) {
75757 return source.size === -1 ? void 0 : source.size;
75758 } else {
75759 return void 0;
75760 }
75761}
75762function getTotalLength(sources) {
75763 let total = 0;
75764 for (const source of sources) {
75765 const partLength = getLength(source);
75766 if (partLength === void 0) {
75767 return void 0;
75768 } else {
75769 total += partLength;
75770 }

Callers 1

buildRequestBodyFunction · 0.85

Calls 1

getLengthFunction · 0.85

Tested by

no test coverage detected