Skip to content

Feature request: Add support for writing raw entries like in 1.2 #217

@chenxiaolong

Description

@chenxiaolong

It seems that minizip 2.0+ no longer has the ability to write raw (pre-compressed) entries to a zip file. My main use case is copying files from one zip file to another, making changes to certain entries in the process. With minizip 1.2, It was possible to directly copy the compressed data from one file to the other to avoid the CPU overhead of decompression + recompression. This was done by passing 1 for the raw parameter in the unzOpenCurrentFile2 and zipOpenNewFileInZip2_64 functions.

Are there plans for implementing this in minizip 2.0 as well?

EDIT: For reference, this is an example of the raw entry copy I was doing before: https://github.com/chenxiaolong/DualBootPatcher/blob/f561b2d9d60ca793ab0056c74d603689972eaf1b/libmbpatcher/src/private/miniziputils.cpp#L353-L461

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssue or bug has been fixednew featureNew featurerawRaw file storage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions