Update for latest nazarautils

This commit is contained in:
SirLynix
2023-09-08 09:10:22 +02:00
parent aef8b01f15
commit 1009b296a1
13 changed files with 174 additions and 189 deletions

View File

@@ -129,7 +129,7 @@ namespace Nz
context.FlushBits();
if (context.endianness != Endianness::Unknown && context.endianness != GetPlatformEndianness())
SwapBytes(&value, sizeof(T));
value = ByteSwap(value);
return context.stream->Write(&value, sizeof(T)) == sizeof(T);
}
@@ -208,7 +208,7 @@ namespace Nz
if (context.stream->Read(value, sizeof(T)) == sizeof(T))
{
if (context.endianness != Endianness::Unknown && context.endianness != GetPlatformEndianness())
SwapBytes(value, sizeof(T));
*value = ByteSwap(*value);
return true;
}