aboutsummaryrefslogtreecommitdiff
path: root/tests/test_bytes.rs
diff options
context:
space:
mode:
authorGravatar Carl Lerche <me@carllerche.com> 2020-10-20 11:00:35 -0700
committerGravatar GitHub <noreply@github.com> 2020-10-20 11:00:35 -0700
commit39de065a1ed7005b5b7e85fba612bf049a510807 (patch)
tree662e11aba9688b0a5e66b38c4c0406c973ca11c5 /tests/test_bytes.rs
parent5866839e4527784600f1b1d6db27dd4e82c1a536 (diff)
downloadbytes-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