MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / pushInflated

Function pushInflated

packages/plugins/apps/src/git-client/packfile.ts:179–184  ·  view source on GitHub ↗
(out: number[], byte: number, maxObjectBytes: number)

Source from the content-addressed store, hash-verified

177
178// Inflate raw DEFLATE at buf[pos..], return {out, endPos}
179function pushInflated(out: number[], byte: number, maxObjectBytes: number): void {
180 if (out.length + 1 > maxObjectBytes) {
181 throw repositoryTooLarge(`inflated object exceeds ${maxObjectBytes} bytes`);
182 }
183 out.push(byte);
184}
185
186function inflateRaw(
187 buf: Uint8Array,

Callers 1

inflateRawFunction · 0.85

Calls 2

repositoryTooLargeFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected