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 > *, int inArrayDepth, EOSDataType inDataType, const char *inClassName)
Definition: ObjectStream.h:123
void OSWriteData(IObjectStreamOut &ioStream, const Array< T > &inArray)
Definition: ObjectStream.h:241
bool OSReadData(IObjectStreamIn &ioStream, Array< T > &inArray)
Define serialization templates for dynamic arrays.
Definition: ObjectStream.h:154
void OSWriteDataType(IObjectStreamOut &ioStream, Array< T > *)
Definition: ObjectStream.h:234
EOSDataType
Data type.
Definition: SerializableAttribute.h:15
Interface class for reading from an object stream.
Definition: ObjectStream.h:40
Interface class for writing to an object stream.
Definition: ObjectStream.h:74