Skip to content
Snippets Groups Projects
  1. Dec 10, 2019
  2. Dec 04, 2019
  3. Dec 01, 2019
  4. Nov 27, 2019
  5. Nov 26, 2019
  6. Nov 25, 2019
  7. Nov 20, 2019
  8. Nov 13, 2019
  9. Nov 12, 2019
  10. Nov 05, 2019
  11. Oct 31, 2019
  12. Oct 24, 2019
    • Sean McArthur's avatar
      Change BufMut methods that expose maybe-uninitialized bytes (#305) · 2ac72333
      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.
      Unverified
      2ac72333
  13. Oct 23, 2019
  14. Oct 16, 2019
    • Sean McArthur's avatar
      Remove Buf impl for &str (#301) · 491ebbf7
      Sean McArthur authored
      A `&str` cannot arbitrarily advance bytes, since it will panic if
      advanced to the middle of a Unicode segment.
      491ebbf7
    • Sean McArthur's avatar
      Refactor Bytes to use an internal vtable (#298) · 43ac8e54
      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.)
      Unverified
      43ac8e54
  15. Sep 08, 2019
  16. Sep 05, 2019
  17. Aug 31, 2019
  18. Aug 28, 2019
  19. Aug 27, 2019
  20. Aug 16, 2019
  21. Aug 11, 2019
  22. Jul 30, 2019
  23. Jul 25, 2019
  24. Jul 24, 2019
  25. Jul 16, 2019
  26. Jun 11, 2019
Loading