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

Method read

physx/source/common/src/CmIO.h:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51 InputStreamReader(PxInputStream& stream) : mStream(stream) { }
52 PxU32 read(void* dest, PxU32 count)
53 {
54 PxU32 readLength = mStream.read(dest, count);
55
56 // zero the buffer if we didn't get all the data
57 if(readLength<count)
58 PxMemZero(reinterpret_cast<PxU8*>(dest)+readLength, count-readLength);
59
60 return readLength;
61 }
62
63 template <typename T> T get()
64 {

Callers 15

deserializeObjectsFunction · 0.45
checkFileFunction · 0.45
deserializeCollectionFunction · 0.45
getMethod · 0.45
loadMeshDataFunction · 0.45
readChunkMethod · 0.45
readWordMethod · 0.45
readDwordMethod · 0.45
readFloatMethod · 0.45
readFloatBufferMethod · 0.45

Calls 1

PxMemZeroFunction · 0.85

Tested by

no test coverage detected