diff --git a/AK/MemoryStream.h b/AK/MemoryStream.h index 95080f12473..0a5d02317d0 100644 --- a/AK/MemoryStream.h +++ b/AK/MemoryStream.h @@ -193,6 +193,8 @@ public: return nwritten; } + bool is_end() const { return remaining() == 0; } + ReadonlyBytes bytes() const { return { data(), size() }; } Bytes bytes() { return { data(), size() }; }