mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:27:35 +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
|
@ -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)))));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue