AK: Add OutputMemoryStream::is_end.

This commit is contained in:
asynts 2020-09-20 12:32:30 +02:00 committed by Andreas Kling
parent e7f5090808
commit 1a277ac291
Notes: sideshowbarker 2024-07-19 02:18:58 +09:00

View file

@ -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() }; }