mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +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
46 changed files with 141 additions and 141 deletions
|
@ -259,10 +259,10 @@ ErrorOr<void> BitmapFont::write_to_file(DeprecatedString const& path)
|
|||
|
||||
auto stream = TRY(Core::File::open(path, Core::File::OpenMode::Write));
|
||||
size_t bytes_per_glyph = sizeof(u32) * m_glyph_height;
|
||||
TRY(stream->write_entire_buffer({ &header, sizeof(header) }));
|
||||
TRY(stream->write_entire_buffer({ m_range_mask, m_range_mask_size }));
|
||||
TRY(stream->write_entire_buffer({ m_rows, m_glyph_count * bytes_per_glyph }));
|
||||
TRY(stream->write_entire_buffer({ m_glyph_widths, m_glyph_count }));
|
||||
TRY(stream->write_until_depleted({ &header, sizeof(header) }));
|
||||
TRY(stream->write_until_depleted({ m_range_mask, m_range_mask_size }));
|
||||
TRY(stream->write_until_depleted({ m_rows, m_glyph_count * bytes_per_glyph }));
|
||||
TRY(stream->write_until_depleted({ m_glyph_widths, m_glyph_count }));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue