mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Fix Endian functions names in hsTypes and hsStream.
Function and macro names for endianness were previously vague, and on big-endian systems entirely misleading. The names are now properly descriptive of what they actually do.
This commit is contained in:
@ -398,7 +398,7 @@ bool plEncryptedStream::IWriteEncypted(hsStream* sourceStream, const wchar* outp
|
||||
outputStream.Write(kMagicStringLen, kMagicString);
|
||||
|
||||
// Save some space to write the file size at the end
|
||||
outputStream.WriteSwap32(0);
|
||||
outputStream.WriteLE32(0);
|
||||
|
||||
// Write out all the full size encrypted blocks we can
|
||||
char buf[kEncryptChunkSize];
|
||||
@ -431,7 +431,7 @@ bool plEncryptedStream::IWriteEncypted(hsStream* sourceStream, const wchar* outp
|
||||
UInt32 actualSize = sourceStream->GetPosition();
|
||||
outputStream.Rewind();
|
||||
outputStream.Skip(kMagicStringLen);
|
||||
outputStream.WriteSwap32(actualSize);
|
||||
outputStream.WriteLE32(actualSize);
|
||||
|
||||
outputStream.Close();
|
||||
|
||||
|
@ -436,7 +436,7 @@ bool plSecureStream::IWriteEncrypted(hsStream* sourceStream, const wchar* output
|
||||
outputStream.Write(kMagicStringLen, kMagicString);
|
||||
|
||||
// Save some space to write the file size at the end
|
||||
outputStream.WriteSwap32(0);
|
||||
outputStream.WriteLE32(0);
|
||||
|
||||
// Write out all the full size encrypted blocks we can
|
||||
char buf[kEncryptChunkSize];
|
||||
@ -469,7 +469,7 @@ bool plSecureStream::IWriteEncrypted(hsStream* sourceStream, const wchar* output
|
||||
UInt32 actualSize = sourceStream->GetPosition();
|
||||
outputStream.Rewind();
|
||||
outputStream.Skip(kMagicStringLen);
|
||||
outputStream.WriteSwap32(actualSize);
|
||||
outputStream.WriteLE32(actualSize);
|
||||
|
||||
outputStream.Close();
|
||||
|
||||
|
Reference in New Issue
Block a user