diff options
author | 2020-10-20 11:00:35 -0700 | |
---|---|---|
committer | 2020-10-20 11:00:35 -0700 | |
commit | 39de065a1ed7005b5b7e85fba612bf049a510807 (patch) | |
tree | 662e11aba9688b0a5e66b38c4c0406c973ca11c5 /tests/test_bytes.rs | |
parent | 5866839e4527784600f1b1d6db27dd4e82c1a536 (diff) | |
download | bytes-39de065a1ed7005b5b7e85fba612bf049a510807.tar.gz bytes-39de065a1ed7005b5b7e85fba612bf049a510807.tar.zst bytes-39de065a1ed7005b5b7e85fba612bf049a510807.zip |
Add `Buf::copy_to_bytes(len)` (#439)
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
Diffstat (limited to 'tests/test_bytes.rs')
0 files changed, 0 insertions, 0 deletions