When the compression level is 0, zip-stream sets the compression method to 0 (stored),
which causes the issue for appending buffer.
When using encryption, we need to use data descriptor to use encrypted data size
for calculating compressed size.
In this fix, ZipCryptoStream._writeLocalFileHeader() is removed and
encryption is integrated to ZipCryptoStream._smartStream().
Related: #6
When the compression level is 0, zip-stream sets the compression method to 0 (stored), which causes the issue for appending buffer. When using encryption, we need to use data descriptor to use encrypted data size for calculating compressed size. In this fix,
ZipCryptoStream._writeLocalFileHeader()
is removed and encryption is integrated toZipCryptoStream._smartStream()
.