mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibCompress: Let BrotliDecompressionStream
take a MaybeOwned
This commit is contained in:
parent
8a853278d0
commit
dbc25f18ec
6 changed files with 8 additions and 8 deletions
|
@ -1000,7 +1000,7 @@ ErrorOr<NonnullRefPtr<Font>> Font::try_load_from_externally_owned_memory(Seekabl
|
|||
return Error::from_string_literal("Not enough data to read in the reported size of the compressed data");
|
||||
|
||||
auto compressed_stream = FixedMemoryStream(compressed_bytes);
|
||||
auto brotli_stream = Compress::BrotliDecompressionStream { compressed_stream };
|
||||
auto brotli_stream = Compress::BrotliDecompressionStream { MaybeOwned<Stream>(compressed_stream) };
|
||||
auto decompressed_table_data = TRY(brotli_stream.read_until_eof());
|
||||
if (decompressed_table_data.size() != total_length_of_all_tables)
|
||||
return Error::from_string_literal("Size of the decompressed data is not equal to the total of the reported lengths of each table");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue