mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +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:
@ -76,7 +76,7 @@ public:
|
||||
};
|
||||
|
||||
// Read/Writable version of plTimedValue, for intrinsic types (e.g. int, float, bool).
|
||||
// Must be a type that hsStream has an overloaded ReadSwap/WriteSwap defined.
|
||||
// Must be a type that hsStream has an overloaded ReadLE/WriteLE defined.
|
||||
template <class T> class plTimedSimple : public plTimedValue<T>
|
||||
{
|
||||
public:
|
||||
@ -141,7 +141,7 @@ template <class T>
|
||||
void plTimedSimple<T>::Read(hsStream* s)
|
||||
{
|
||||
T val;
|
||||
s->ReadSwap(&val);
|
||||
s->ReadLE(&val);
|
||||
Set(val, 0.f);
|
||||
}
|
||||
|
||||
@ -149,7 +149,7 @@ template <class T>
|
||||
void plTimedSimple<T>::Write(hsStream* s) const
|
||||
{
|
||||
T val = this->Value();
|
||||
s->WriteSwap(val);
|
||||
s->WriteLE(val);
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
Reference in New Issue
Block a user