mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
AK: Rename Stream::write_entire_buffer to Stream::write_until_depleted
No functional changes.
This commit is contained in:
parent
a3f73e7d85
commit
ecd1862859
Notes:
sideshowbarker
2024-07-18 00:34:07 +09:00
Author: https://github.com/timschumi
Commit: ecd1862859
Pull-request: https://github.com/SerenityOS/serenity/pull/17684
Reviewed-by: https://github.com/JanDeVisser ✅
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
46 changed files with 141 additions and 141 deletions
|
@ -796,7 +796,7 @@ ErrorOr<void> Ext2FSInode::write_directory(Vector<Ext2FSDirectoryEntry>& entries
|
|||
MUST(stream.write_value<u16>(entry.record_length));
|
||||
MUST(stream.write_value<u8>(entry.name->length()));
|
||||
MUST(stream.write_value<u8>(entry.file_type));
|
||||
MUST(stream.write_entire_buffer(entry.name->bytes()));
|
||||
MUST(stream.write_until_depleted(entry.name->bytes()));
|
||||
int padding = entry.record_length - entry.name->length() - 8;
|
||||
for (int j = 0; j < padding; ++j)
|
||||
MUST(stream.write_value<u8>(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue