Skip to content

Allow releasing a map from the wrapper #108

@louist103

Description

@louist103

Similar to std::unique_ptr's release function which allows the user to take control of the object, allow the user to take control of the map to unmap the file after the original wrapper goes out of scope.
This causes an issue when using something like libzip where data added to the zip file must remain valid until the archive is closed. Normally the pointer and size can be stored by the callee and released after the archive is closed, but this is not possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions