Skip to content

cupertino-files / snappyCompressBlock

Function: snappyCompressBlock()

snappyCompressBlock(input, vintage?): Uint8Array

Defined in: src/base/snappy.ts:340

Compress a buffer into a single raw Snappy block: the varint uncompressed-length header followed by 64 KiB fragments, each compressed independently — byte-identical to snappy::Compress on the same input.

Parameters

input

Uint8Array

vintage?

"modern" | "classic"

Returns

Uint8Array

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.