This PR adds a method to ZipWriter which overwrites the internal crc32 calculation.
Use case: in our specific scenario we need to write to the inner Write outside of ZipWriter (tldr: we deal with very large files which need to be streamed/managed independently), but we need ZipWriter to be aware of this in order to write the correct length and crc32 values to the zip metadata.
This PR adds a method to
ZipWriter
which overwrites the internal crc32 calculation.Use case: in our specific scenario we need to write to the inner
Write
outside ofZipWriter
(tldr: we deal with very large files which need to be streamed/managed independently), but we needZipWriter
to be aware of this in order to write the correct length and crc32 values to the zip metadata.