mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
AK: Add ByteBuffer::append(ReadonlyBytes)
This commit is contained in:
parent
78bc9d1539
commit
ffda24373a
Notes:
sideshowbarker
2024-07-18 12:21:23 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/ffda24373ab Pull-request: https://github.com/SerenityOS/serenity/pull/7675 Reviewed-by: https://github.com/FireFox317 Reviewed-by: https://github.com/alimpfard
1 changed files with 5 additions and 0 deletions
|
@ -161,6 +161,11 @@ public:
|
|||
ensure_capacity_slowpath(new_capacity);
|
||||
}
|
||||
|
||||
void append(ReadonlyBytes const& bytes)
|
||||
{
|
||||
append(bytes.data(), bytes.size());
|
||||
}
|
||||
|
||||
void append(void const* data, size_t data_size)
|
||||
{
|
||||
if (data_size == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue