1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-20 06:12:57 +01:00

Move IStream, MemoryStream, FileStream into OpenRCT2 namespace

This commit is contained in:
Matt
2020-07-30 23:01:22 +02:00
parent 30376085cf
commit 83355e35cc
74 changed files with 828 additions and 758 deletions

View File

@@ -34,7 +34,7 @@ protected:
ASSERT_GT(encodedDataSize, sizeof(sawyercoding_chunk_header));
// Decode
MemoryStream ms(encodedDataBuffer, encodedDataSize);
OpenRCT2::MemoryStream ms(encodedDataBuffer, encodedDataSize);
SawyerChunkReader reader(&ms);
auto chunk = reader.ReadChunk();
ASSERT_EQ(static_cast<uint8_t>(chunk->GetEncoding()), chdr_in.encoding);
@@ -51,7 +51,7 @@ protected:
auto chdr_in = reinterpret_cast<const sawyercoding_chunk_header*>(data);
ASSERT_EQ(chdr_in->length, expectedLength);
MemoryStream ms(data, size);
OpenRCT2::MemoryStream ms(data, size);
SawyerChunkReader reader(&ms);
auto chunk = reader.ReadChunk();
ASSERT_EQ(static_cast<uint8_t>(chunk->GetEncoding()), chdr_in->encoding);