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

Add Buf::copy_to_bytes(len) #439

Merged
merged 2 commits into from Oct 20, 2020
Merged

Add Buf::copy_to_bytes(len) #439

merged 2 commits into from Oct 20, 2020

Conversation

carllerche
Copy link
Member

This method replaces Buf::to_bytes(), providing a method that copies a
subset of the remaining buffer into a Bytes value. As this is strictly
more flexible, to_bytes() is removed.

Fixes: #129, #398

This method replaces `Buf::to_bytes()`, providing a method that copies a
subset of the remaining buffer into a `Bytes` value. As this is strictly
more flexible, `to_bytes()` is removed.

Fixes: #129, #398
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

Successfully merging this pull request may close these issues.

Buf::copy_to_bytes
2 participants