Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ObjectStream.cpp File Reference

Macros

#define JPH_DECLARE_PRIMITIVE(name)
 

Macro Definition Documentation

◆ JPH_DECLARE_PRIMITIVE

#define JPH_DECLARE_PRIMITIVE (   name)
Value:
bool OSIsType(name *, int inArrayDepth, EOSDataType inDataType, const char *inClassName) \
{ \
return inArrayDepth == 0 && inDataType == EOSDataType::T_##name; \
} \
bool OSReadData(IObjectStreamIn &ioStream, name &outPrimitive) \
{ \
return ioStream.ReadPrimitiveData(outPrimitive); \
} \
void OSWriteDataType(IObjectStreamOut &ioStream, name *) \
{ \
ioStream.WriteDataType(EOSDataType::T_##name); \
} \
void OSWriteData(IObjectStreamOut &ioStream, const name &inPrimitive) \
{ \
ioStream.HintNextItem(); \
ioStream.WritePrimitiveData(inPrimitive); \
}
bool OSIsType(Array< T, A > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
Definition: ObjectStream.h:125
bool OSReadData(IObjectStreamIn &ioStream, Array< T, A > &inArray)
Define serialization templates for dynamic arrays.
Definition: ObjectStream.h:156
void OSWriteData(IObjectStreamOut &ioStream, const Array< T, A > &inArray)
Definition: ObjectStream.h:243
void OSWriteDataType(IObjectStreamOut &ioStream, Array< T, A > *)
Definition: ObjectStream.h:236
EOSDataType
Data type.
Definition: SerializableAttribute.h:17
Interface class for reading from an object stream.
Definition: ObjectStream.h:42
Interface class for writing to an object stream.
Definition: ObjectStream.h:76