mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK: Move memory streams from LibCore
This commit is contained in:
parent
11550f582b
commit
093cf428a3
Notes:
sideshowbarker
2024-07-17 00:58:49 +09:00
Author: https://github.com/timschumi
Commit: 093cf428a3
Pull-request: https://github.com/SerenityOS/serenity/pull/17173
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard
46 changed files with 213 additions and 203 deletions
|
@ -8,9 +8,9 @@
|
|||
|
||||
#include <AK/Array.h>
|
||||
#include <AK/BitStream.h>
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <AK/Random.h>
|
||||
#include <LibCompress/Deflate.h>
|
||||
#include <LibCore/MemoryStream.h>
|
||||
#include <cstring>
|
||||
|
||||
TEST_CASE(canonical_code_simple)
|
||||
|
@ -28,7 +28,7 @@ TEST_CASE(canonical_code_simple)
|
|||
};
|
||||
|
||||
auto const huffman = Compress::CanonicalCode::from_bytes(code).value();
|
||||
auto memory_stream = MUST(Core::Stream::FixedMemoryStream::construct(input));
|
||||
auto memory_stream = MUST(FixedMemoryStream::construct(input));
|
||||
auto bit_stream = MUST(LittleEndianInputBitStream::construct(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(Core::Stream::FixedMemoryStream::construct(input));
|
||||
auto memory_stream = MUST(FixedMemoryStream::construct(input));
|
||||
auto bit_stream = MUST(LittleEndianInputBitStream::construct(move(memory_stream)));
|
||||
|
||||
for (size_t idx = 0; idx < 12; ++idx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue