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

Commits on Oct 20, 2020

  1. Add Buf::copy_to_bytes(len)

    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
    carllerche committed Oct 20, 2020
    Copy the full SHA
    9de615f View commit details
    Browse the repository at this point in the history
  2. fmt

    carllerche committed Oct 20, 2020
    Copy the full SHA
    839d7e9 View commit details
    Browse the repository at this point in the history