diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-11 18:27:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-12 14:16:42 +0100 |
commit | 6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (patch) | |
tree | 327b04fb4820758e4d8cc60d30bd849d7b3511eb /Userland/Libraries/LibCore/Stream.cpp | |
parent | ed4c2f2f8ea59295edceca77bf308df5de6872d6 (diff) | |
download | serenity-6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3.zip |
LibCore: Rename `Stream::*_or_error` to `*_entire_buffer`
All of our functions are `_or_error` (or are about to be), and maybe
making it less reminiscient of AK::Stream will make people use it more.
Diffstat (limited to 'Userland/Libraries/LibCore/Stream.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/Stream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/Stream.cpp b/Userland/Libraries/LibCore/Stream.cpp index ba69c533c7..c8b0e477a1 100644 --- a/Userland/Libraries/LibCore/Stream.cpp +++ b/Userland/Libraries/LibCore/Stream.cpp @@ -23,7 +23,7 @@ namespace Core::Stream { -bool Stream::read_or_error(Bytes buffer) +bool Stream::read_entire_buffer(Bytes buffer) { VERIFY(buffer.size()); @@ -89,7 +89,7 @@ ErrorOr<void> Stream::discard(size_t discarded_bytes) return {}; } -bool Stream::write_or_error(ReadonlyBytes buffer) +bool Stream::write_entire_buffer(ReadonlyBytes buffer) { VERIFY(buffer.size()); |