mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-11 18:25:03 +00:00
AK: Add ByteBuffer::append(ReadonlyBytes)
This commit is contained in:
committed by
Ali Mohammad Pur
parent
78bc9d1539
commit
ffda24373a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user