mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Stream changes from NSF (#15446)
* Bring over NSF changes to stream classes * Add orca stream to project files * Bring over util changes as well. * Add const to util and fix util ungzip * Add const and apply review comments * Apply review comments
This commit is contained in:
@@ -262,6 +262,12 @@ namespace OpenRCT2
|
||||
Write<16>(buffer);
|
||||
}
|
||||
|
||||
void MemoryStream::Clear()
|
||||
{
|
||||
_dataSize = 0;
|
||||
SetPosition(0);
|
||||
}
|
||||
|
||||
void MemoryStream::EnsureCapacity(size_t capacity)
|
||||
{
|
||||
if (_dataCapacity < capacity)
|
||||
|
||||
Reference in New Issue
Block a user