8000 mz_zip_reader_entry_read buffer size · Issue #465 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

mz_zip_reader_entry_read buffer size #465

Closed

Description

@hsdk123

Hi, I'm looking at the example here

https://github.com/nmoinvaz/minizip/blob/master/doc/mz_zip_rw.md#mz_zip_reader_entry_read

but it seems there's no way to get the actual size of the entry so that we can preallocate a buffer that's sufficiently large - how do we get the information?

Activity

  1. nmoinvaz commented on Apr 13, 2020

    @nmoinvaz
    Member

    It is not necessary to get the entry size, you can use any buffer length and keep calling mz_zip_reader_entry_read until no more data (0 return value). If you want the entry size you can use mz_zip_reader_entry_get_info.

  2. added < 4EA8 div class="labelContainer__wErxbY">questionQuestion about something
    on Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about something

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0