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

Make writer consume z_bytes_t and then return it upon finishing all writes. #661

Closed
Tracked by #690
DenisBiryukov91 opened this issue Sep 9, 2024 · 0 comments
Closed
Tracked by #690
Labels
release Part of the next release

Comments

@DenisBiryukov91
Copy link
Contributor

Describe the release item

Make writer take z_bytes_t by move, instead of by mutable reference.
Provide a method, taking writer by move and returning resulting bytes, once all writes are done.
This is to prevent creating several writers for a single z_bytes instance and also avoid side effects when cloning z_bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Part of the next release
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant