mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 08:14:38 +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:
@@ -57,6 +57,17 @@ namespace OpenRCT2
|
||||
}
|
||||
}
|
||||
|
||||
void IStream::WriteString(const std::string_view str)
|
||||
{
|
||||
for (const auto c : str)
|
||||
{
|
||||
if (c == '\0')
|
||||
break;
|
||||
WriteValue<uint8_t>(c);
|
||||
}
|
||||
WriteValue<uint8_t>(0);
|
||||
}
|
||||
|
||||
void IStream::WriteString(const std::string& str)
|
||||
{
|
||||
WriteString(str.c_str());
|
||||
|
||||
Reference in New Issue
Block a user