MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / readFloat

Method readFloat

physx/source/geomutils/src/GuSerialize.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70PxF32 physx::readFloat(bool mismatch, PxInputStream& stream)
71{
72 union
73 {
74 PxU32 d;
75 PxF32 f;
76 } u;
77
78 stream.read(&u.d, sizeof(PxU32));
79
80 if(mismatch)
81 flip(u.d);
82 return u.f;
83}
84
85///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
86

Callers

nothing calls this directly

Calls 2

flipFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected