1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Use streams for network load and save

This commit is contained in:
Ted John
2017-02-08 18:16:33 +00:00
parent de0e6bf521
commit d124f4fad0
10 changed files with 127 additions and 145 deletions

View File

@@ -63,7 +63,12 @@ MemoryStream::~MemoryStream()
_data = nullptr;
}
void * MemoryStream::GetData() const
const void * MemoryStream::GetData() const
{
return _data;
}
void * MemoryStream::GetDataCopy() const
{
return Memory::Duplicate(_data, _dataSize);
}