更新时间:2023-02-19 22:45:31
没有.
获得压缩流的确切大小的唯一方法是实际去解压缩它(即使您将所有内容都写入/dev/null 并只计算字节数).
The only way to get the exact size of a compressed stream is to actually go and decompress it (even if you write everything to /dev/null and just count the bytes).
值得注意的是,ISIZE定义为
Its worth noting that ISIZE is defined as
ISIZE(输入尺寸)
这包含原始(未压缩)输入的大小
数据模 2^32.
ISIZE (Input SIZE)
This contains the size of the original (uncompressed) input
data modulo 2^32.
在 gzip RFC 中,所以它实际上并不破坏 在 32 位屏障上,您看到的是预期行为.
in the gzip RFC so it isn't actually breaking at the 32-bit barrier, what you're seeing is expected behavior.