UNPKG

@lyleunderwood/streaming-zipper

Version:

Memory-efficient streaming ZIP creation with automatic backpressure control. Supports parallel reading + sequential writing for both Web Streams and Node.js streams with ZIP64 support.

33 lines 761 B
/** * Fast CRC32 calculation for ZIP file integrity * Based on the CRC32 algorithm used in ZIP files (IEEE 802.3) */ /** * Calculate CRC32 for a Uint8Array */ export declare function crc32(data: Uint8Array, crc?: number): number; /** * CRC32 streaming calculator for processing data in chunks */ export declare class CRC32Stream { private crc; private table; constructor(); /** * Update CRC32 with new data chunk */ update(data: Uint8Array): void; /** * Get the final CRC32 value */ digest(): number; /** * Reset the CRC32 calculator */ reset(): void; /** * Get current CRC32 value without finalization */ getCurrentValue(): number; } //# sourceMappingURL=crc32.d.ts.map