mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:44:58 +00:00
AK: Rename Stream::read_entire_buffer to Stream::read_until_filled
No functional changes.
This commit is contained in:
parent
d5871f5717
commit
a3f73e7d85
31 changed files with 58 additions and 58 deletions
|
@ -18,7 +18,7 @@ static DeprecatedString read_all(DeprecatedString const& path)
|
|||
auto file = MUST(Core::File::open(path, Core::File::OpenMode::Read));
|
||||
auto file_size = MUST(file->size());
|
||||
auto content = MUST(ByteBuffer::create_uninitialized(file_size));
|
||||
MUST(file->read_entire_buffer(content.bytes()));
|
||||
MUST(file->read_until_filled(content.bytes()));
|
||||
return DeprecatedString { content.bytes() };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue