diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-31 00:31:46 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-05-31 14:49:00 +0430 |
commit | 5f18cf75c5d660873f840512f2fe55d4e239e238 (patch) | |
tree | f980bd886c4369a237899cddaf16458416c6e1b9 /Userland/CMakeLists.txt | |
parent | dc54a0fbd399923ca0c3db1ffd34c63158ecd7d5 (diff) | |
download | serenity-5f18cf75c5d660873f840512f2fe55d4e239e238.zip |
AK: Replace ByteBuffer::grow with resize()/ensure_capacity()
Previously ByteBuffer::grow() behaved like Vector<T>::resize().
However the function name was somewhat ambiguous - and so this patch
updates ByteBuffer to behave more like Vector<T> by replacing grow()
with resize() and adding an ensure_capacity() method.
This also lets the user change the buffer's capacity without affecting
the size which was not previously possible.
Additionally this patch makes the capacity() method public (again).
Diffstat (limited to 'Userland/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions