- Dec 10, 2019
-
-
Sean McArthur authored
-
- Dec 04, 2019
-
-
Sean McArthur authored
-
- Dec 01, 2019
-
-
Mikhail Zabaluev authored
When the length to truncate is greater than the buffer's current length, do nothing instead of clearing the contents.
-
- Nov 27, 2019
-
-
Sean McArthur authored
-
Steven Fackler authored
-
Sean McArthur authored
-
- Nov 26, 2019
-
-
Steven Fackler authored
-
- Nov 25, 2019
-
-
Steven Fackler authored
-
Carl Lerche authored
-
Sean McArthur authored
-
- Nov 20, 2019
-
-
Sean McArthur authored
This type is the counterpart to BufExt::take. It limits how many bytes some `BufMut` can actually be filled with.
-
Carl Lerche authored
remove either feature
-
Carl Lerche authored
This brings `BytesMut` in line with `Vec<u8>` behavior. This also fixes an existing bug in BytesMut::bytes_mut that exposes invalid slices. The bug was recently introduced and was only on master and never released to `crates.io`. In order to fix a test, `BufMutExt::chain_mut` is provided. Withou this, it is not possible to chain two `&mut [u8]`. Closes #170
-
Andrew Tunnell-Jones authored
Rust versions bumped to the minimum needed for const slice len.
-
- Nov 13, 2019
-
-
Sean McArthur authored
-
- Nov 12, 2019
-
-
Sean McArthur authored
Makes the short-circuit checks inline-able, and the moves the actual reserving code to an inner function.
-
- Nov 05, 2019
-
-
Sean McArthur authored
-
- Oct 31, 2019
-
-
Sean McArthur authored
-
- Oct 24, 2019
-
-
Sean McArthur authored
- The return type of `BufMut::bytes_mut` is now `&mut [MaybeUninit<u8>]`. - The argument type of `BufMut::bytes_vectored_mut` is now `&mut [bytes::buf::IoSliceMut]`. - `bytes::buf::IoSliceMut` is a `repr(transparent)` wrapper around an `std::io::IoSliceMut`, but does not expose the inner bytes with a safe API, since they might be uninitialized. - `BufMut::bytesMut` and `BufMut::bytes_vectored_mut` are no longer `unsafe fn`, since the types encapsulate the unsafety instead.
-
- Oct 23, 2019
-
-
Sean McArthur authored
-
- Oct 16, 2019
-
-
Sean McArthur authored
A `&str` cannot arbitrarily advance bytes, since it will panic if advanced to the middle of a Unicode segment.
-
Sean McArthur authored
Bytes is a useful tool for managing multiple slices into the same region of memory, and the other things it used to have been removed to reduce complexity. The exact strategy for managing the multiple references is no longer hard-coded, but instead backing by a customizable vtable. - Removed ability to mutate the underlying memory from the `Bytes` type. - Removed the "inline" (SBO) mechanism in `Bytes`. The reduces a large amount of complexity, and improves performance when accessing the slice of bytes, since a branch is no longer needed to check if the data is inline. - Removed `Bytes` knowledge of `BytesMut` (`BytesMut` may grow that knowledge back at a future point.)
-
- Sep 08, 2019
-
-
Taiki Endo authored
Verify no-std build and all features build
-
Taiki Endo authored
-
- Sep 05, 2019
-
-
Chris Beck authored
To make the library work as `no_std` we add an `std` feature which is on by default. When it is off, we compile as `no_std` and make parts of the API that require `std::io` conditional on the `std` feature.
-
- Aug 31, 2019
-
-
Taiki Endo authored
-
- Aug 28, 2019
-
-
Ralf Jung authored
-
- Aug 27, 2019
- Aug 16, 2019
- Aug 11, 2019
-
-
Douman authored
-
- Jul 30, 2019
-
-
Taiki Endo authored
-
Carl Lerche authored
-
- Jul 25, 2019
-
-
Taiki Endo authored
-
- Jul 24, 2019
-
-
Taiki Endo authored
-
- Jul 16, 2019
-
-
Bruce Mitchener authored
-
Bruce Mitchener authored
-
- Jun 11, 2019
-
-
Sean McArthur authored
- Renames `bytes_vec` to `bytes_vectored` and `bytes_vec_mut` to `bytes_vectored_mut`.
-