mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-09 00:00:15 +02:00
This change tracks the original capacity requested when `BytesMut` is first created. This capacity is used when a `reserve` needs to allocate due to the current view being too small. The newly allocated buffer will be sized the same as the original allocation.