summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/GIFLoader.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-03-01 15:27:35 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-13 15:16:20 +0000
commita3f73e7d85584412e2774870bc6538faaaf71001 (patch)
tree0e16f061a39e5006ff311bcd93011fdd0a3816ba /Userland/Libraries/LibGfx/GIFLoader.cpp
parentd5871f5717579fab3c093537c44e3cd467560cdd (diff)
downloadserenity-a3f73e7d85584412e2774870bc6538faaaf71001.zip
AK: Rename Stream::read_entire_buffer to Stream::read_until_filled
No functional changes.
Diffstat (limited to 'Userland/Libraries/LibGfx/GIFLoader.cpp')
-rw-r--r--Userland/Libraries/LibGfx/GIFLoader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGfx/GIFLoader.cpp b/Userland/Libraries/LibGfx/GIFLoader.cpp
index 33aec6c5de..1809b21feb 100644
--- a/Userland/Libraries/LibGfx/GIFLoader.cpp
+++ b/Userland/Libraries/LibGfx/GIFLoader.cpp
@@ -94,7 +94,7 @@ static ErrorOr<GIFFormat> decode_gif_header(Stream& stream)
static auto valid_header_89 = "GIF89a"sv;
Array<u8, 6> header;
- TRY(stream.read_entire_buffer(header));
+ TRY(stream.read_until_filled(header));
if (header.span() == valid_header_87.bytes())
return GIFFormat::GIF87a;
@@ -424,7 +424,7 @@ static ErrorOr<void> load_gif_frame_descriptors(GIFLoadingContext& context)
break;
TRY(sub_block.try_resize(sub_block.size() + sub_block_length));
- TRY(stream.read_entire_buffer(sub_block.span().slice_from_end(sub_block_length)));
+ TRY(stream.read_until_filled(sub_block.span().slice_from_end(sub_block_length)));
}
if (extension_type == 0xF9) {
@@ -501,7 +501,7 @@ static ErrorOr<void> load_gif_frame_descriptors(GIFLoadingContext& context)
break;
Array<u8, 256> buffer;
- TRY(stream.read_entire_buffer(buffer.span().trim(lzw_encoded_bytes_expected)));
+ TRY(stream.read_until_filled(buffer.span().trim(lzw_encoded_bytes_expected)));
for (int i = 0; i < lzw_encoded_bytes_expected; ++i) {
image->lzw_encoded_bytes.append(buffer[i]);