AK: Add ByteBuffer::append(ReadonlyBytes)

This commit is contained in:
Matthew Olsson 2021-05-26 22:38:56 -07:00 committed by Ali Mohammad Pur
parent 78bc9d1539
commit ffda24373a

View file

@ -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)