1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 20:29:10 +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:
2011-10-23 14:01:54 -07:00
committed by Darryl Pogue
parent ab37a4a486
commit e462ef04b3
255 changed files with 2676 additions and 2676 deletions

View File

@ -199,8 +199,8 @@ void plAvBrainCoop::Read(hsStream *stream, hsResMgr *mgr)
{
plAvBrainGeneric::Read(stream, mgr);
fInitiatorID = stream->ReadSwap32();
fInitiatorSerial = stream->ReadSwap16();
fInitiatorID = stream->ReadLE32();
fInitiatorSerial = stream->ReadLE16();
if(stream->Readbool())
{
@ -212,7 +212,7 @@ void plAvBrainCoop::Read(hsStream *stream, hsResMgr *mgr)
}
fWaitingForClick = stream->Readbool();
unsigned numRecipients = stream->ReadSwap16();
unsigned numRecipients = stream->ReadLE16();
for (unsigned i = 0; i < numRecipients; i++)
fRecipients.push_back(mgr->ReadKey(stream));
}
@ -223,8 +223,8 @@ void plAvBrainCoop::Write(hsStream *stream, hsResMgr *mgr)
{
plAvBrainGeneric::Write(stream, mgr);
stream->WriteSwap32(fInitiatorID);
stream->WriteSwap16(fInitiatorSerial);
stream->WriteLE32(fInitiatorID);
stream->WriteLE16(fInitiatorSerial);
bool hasHostKey = (fHostKey != nil);
bool hasGuestKey = (fGuestKey != nil);
@ -239,7 +239,7 @@ void plAvBrainCoop::Write(hsStream *stream, hsResMgr *mgr)
stream->Writebool(fWaitingForClick);
stream->WriteSwap16(fRecipients.size());
stream->WriteLE16(fRecipients.size());
for (unsigned i = 0; i < fRecipients.size(); i++)
mgr->WriteKey(stream, fRecipients[i]);
}