MCPcopy Create free account
hub / github.com/cloudflare/agents / gzipBytes

Function gzipBytes

packages/shell/src/extras.ts:164–166  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

162}
163
164export async function gzipBytes(bytes: Uint8Array): Promise<Uint8Array> {
165 return transformBytes(bytes, new CompressionStream("gzip"));
166}
167
168export async function gunzipBytes(bytes: Uint8Array): Promise<Uint8Array> {
169 return transformBytes(bytes, new DecompressionStream("gzip"));

Callers 1

compressFileMethod · 0.90

Calls 1

transformBytesFunction · 0.85

Tested by

no test coverage detected