mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
AK: Add ByteBuffer::append(ReadonlyBytes)
This commit is contained in:
parent
78bc9d1539
commit
ffda24373a
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
Add a link
Reference in a new issue