mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
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.
This commit is contained in:
parent
ed4c2f2f8e
commit
6c7c5a6786
17 changed files with 44 additions and 36 deletions
|
@ -22,7 +22,7 @@ TEST_SETUP
|
|||
auto file = file_or_error.release_value();
|
||||
auto file_size = MUST(file->size());
|
||||
auto content = MUST(ByteBuffer::create_uninitialized(file_size));
|
||||
if (!file->read_or_error(content.bytes()))
|
||||
if (!file->read_entire_buffer(content.bytes()))
|
||||
VERIFY_NOT_REACHED();
|
||||
DeprecatedString test_data { content.bytes() };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue