Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow releasing a map from the wrapper #108

Open
louist103 opened this issue Oct 2, 2024 · 0 comments
Open

Allow releasing a map from the wrapper #108

louist103 opened this issue Oct 2, 2024 · 0 comments

Comments

@louist103
Copy link

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

@louist103 louist103 changed the title All releasing a map from the wrapper Allow releasing a map from the wrapper Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant