mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Add OutputMemoryStream::is_end.
This commit is contained in:
parent
e7f5090808
commit
1a277ac291
Notes:
sideshowbarker
2024-07-19 02:18:58 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/1a277ac291a Pull-request: https://github.com/SerenityOS/serenity/pull/3561
1 changed files with 2 additions and 0 deletions
|
@ -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() }; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue