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

Function getLength

out/cli.cjs:75747–75755  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

75745function encodeHeaders(headers) {
75746 let result = "";
75747 for (const [key, value] of headers) {
75748 result += `${key}: ${value}\r
75749`;
75750 }
75751 return result;
75752}
75753function getLength(source) {
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 {

Callers 1

getTotalLengthFunction · 0.85

Calls 1

isBlob3Function · 0.85

Tested by

no test coverage detected