Zlib
class Zlib(val maxDecompressedSize: Int = CompressionCodec.DEFAULT_DECOMPRESSION_LIMIT) : CompressionCodec
RFC 1950 Zlib:Deflate + Adler-32。支持标准窗口大小,不支持预置字典。
Constructors
Functions
Link copied to clipboard
从 dstOffset 开始写入压缩数据,返回实际写入长度,未使用的区域保持不变。 src 与 dst 不能是同一个数组;异常发生时 dst 可能已被部分写入。
Link copied to clipboard
Link copied to clipboard
从 dstOffset 开始写入解压数据,返回实际写入长度,未使用的区域保持不变。 src 与 dst 不能是同一个数组;异常发生时 dst 可能已被部分写入。 解压长度不一定能从压缩数据提前计算,调用方可提供容量上界并处理容量不足异常。
Link copied to clipboard