From ffda24373ab90ddf4b371dbddfee5019dff095ec Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Wed, 26 May 2021 22:38:56 -0700 Subject: [PATCH] AK: Add ByteBuffer::append(ReadonlyBytes) --- AK/ByteBuffer.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/ByteBuffer.h b/AK/ByteBuffer.h index 1480a57405..d11e157610 100644 --- a/AK/ByteBuffer.h +++ b/AK/ByteBuffer.h @@ -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)