Skip to content

How to use mz_zip_reader_entry_read #612

Answered by nmoinvaz
zhuda asked this question in Q&A
Discussion options

You must be logged in to vote

It can be called a single time if you have enough space for the uncompressed data. Or it can be called multiple times if you do not have a buffer big enough. Calling it once is going to lead to better performance. However, many times it is not possible to create a buffer the size of the uncompressed data, especially if there is a lot of it. If you know you are only going to be dealing with small entries, it makes sense. But if you don't know the size of the entries you are dealing with then it makes sense to just use a good-sized buffer and call it multiple times.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zhuda
Comment options

Answer selected by zhuda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants