Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Currently `MutableBuffer#resize` adjust the buffer's capacity. This is slightly confusing, and is not conforming with Rust's as vector, as well as C++'s buffer impl.
This proposes to rename the `resize` to `reserve`, and modify the current `set_len` to `resize`. We'll also allow `resize` to shrink the buffer so as to free up unnecessary space.
Attachments
Issue Links
- links to