mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK: Remove the fallible constructor from FixedMemoryStream
This commit is contained in:
parent
8b2f23d016
commit
220fbcaa7e
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/timschumi
Commit: 220fbcaa7e
Pull-request: https://github.com/SerenityOS/serenity/pull/17264
31 changed files with 185 additions and 209 deletions
|
@ -28,7 +28,7 @@ TEST_CASE(canonical_code_simple)
|
|||
};
|
||||
|
||||
auto const huffman = Compress::CanonicalCode::from_bytes(code).value();
|
||||
auto memory_stream = MUST(FixedMemoryStream::construct(input));
|
||||
auto memory_stream = MUST(try_make<FixedMemoryStream>(input));
|
||||
LittleEndianInputBitStream bit_stream { move(memory_stream) };
|
||||
|
||||
for (size_t idx = 0; idx < 9; ++idx)
|
||||
|
@ -48,7 +48,7 @@ TEST_CASE(canonical_code_complex)
|
|||
};
|
||||
|
||||
auto const huffman = Compress::CanonicalCode::from_bytes(code).value();
|
||||
auto memory_stream = MUST(FixedMemoryStream::construct(input));
|
||||
auto memory_stream = MUST(try_make<FixedMemoryStream>(input));
|
||||
LittleEndianInputBitStream bit_stream { move(memory_stream) };
|
||||
|
||||
for (size_t idx = 0; idx < 12; ++idx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue