1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

AK: Rename Stream::read_entire_buffer to Stream::read_until_filled

No functional changes.
This commit is contained in:
Tim Schumacher 2023-03-01 15:27:35 +01:00 committed by Linus Groh
parent d5871f5717
commit a3f73e7d85
31 changed files with 58 additions and 58 deletions

View file

@ -1772,7 +1772,7 @@ ErrorOr<void> Execute::for_each_entry(RefPtr<Shell> shell, Function<ErrorOr<Iter
return Break;
}
auto entry = entry_result.release_value();
TRY(stream.read_entire_buffer(entry));
TRY(stream.read_until_filled(entry));
auto str = TRY(String::from_utf8(StringView(entry.data(), entry.size() - ifs.length())));
if (TRY(callback(make_ref_counted<StringValue>(move(str)))) == IterationDecision::Break) {
@ -1862,7 +1862,7 @@ ErrorOr<void> Execute::for_each_entry(RefPtr<Shell> shell, Function<ErrorOr<Iter
return {};
}
auto entry = entry_result.release_value();
TRY(stream.read_entire_buffer(entry));
TRY(stream.read_until_filled(entry));
TRY(callback(make_ref_counted<StringValue>(TRY(String::from_utf8(entry)))));
}
}