Package-level declarations

Types

Link copied to clipboard

校验和不匹配。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

调用参数无效。

Link copied to clipboard

压缩数据不符合格式或包含非法长度、匹配距离等。

Link copied to clipboard

输出超过配置的解压长度限制。

Link copied to clipboard

调用方提供的目标数组容量不足。

Link copied to clipboard

输入提前结束,无法读取完整的压缩数据。

Link copied to clipboard

压缩方法、预置字典等格式特性不受支持。

Link copied to clipboard
class Deflate(maxDecompressedSize: Int = CompressionCodec.DEFAULT_DECOMPRESSION_LIMIT) : CompressionCodec

RFC 1951 原始 Deflate。编码使用哈希 LZ77、固定 Huffman 和不可压缩块回退; 解码支持 stored、fixed、dynamic 全部三种块格式。

Link copied to clipboard
class Gzip(val maxDecompressedSize: Int = CompressionCodec.DEFAULT_DECOMPRESSION_LIMIT) : CompressionCodec

RFC 1952 Gzip:支持可选头字段、头部 CRC16、CRC32/ISIZE 和串联成员。

Link copied to clipboard
class LZ4(val maxDecompressedSize: Int = CompressionCodec.DEFAULT_DECOMPRESSION_LIMIT) : CompressionCodec

LZ4 原始块格式(非 LZ4 Frame)。无长度头或校验和,优先用于高速压缩。

Link copied to clipboard
class RLE(val maxDecompressedSize: Int = CompressionCodec.DEFAULT_DECOMPRESSION_LIMIT) : CompressionCodec

PackBits 字节游程编码。适合掩码、索引图和连续重复字节;不包含长度或校验头。

Link copied to clipboard
class Snappy(val maxDecompressedSize: Int = CompressionCodec.DEFAULT_DECOMPRESSION_LIMIT) : CompressionCodec

Snappy 原始块格式(含 varint 原始长度,非 Framed Snappy)。

Link copied to clipboard
class Zlib(val maxDecompressedSize: Int = CompressionCodec.DEFAULT_DECOMPRESSION_LIMIT) : CompressionCodec

RFC 1950 Zlib:Deflate + Adler-32。支持标准窗口大小,不支持预置字典。