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

Method getBlockU32

physx/samples/sampleframework/framework/src/ODBlock.cpp:418–431  ·  view source on GitHub ↗

hig level macro functs, return true on success:

Source from the content-addressed store, hash-verified

416
417// hig level macro functs, return true on success:
418bool ODBlock::getBlockU32(const char * ident, physx::PxU32* p, unsigned count) //reads blocks of form: ident{ 123;}
419{
420 ODBlock* temp = getBlock(ident);
421 if (temp)
422 {
423 temp->reset();
424 for(; count && temp->moreTerminals(); --count)
425 if(p)
426 sscanf(temp->nextTerminal(),"%u", p++);
427
428 return !count;
429 }
430 return false;
431}
432
433bool ODBlock::getBlockString(const char * ident, const char ** p) //of form: ident{abcdef;}
434{

Callers 1

checksumCheckMethod · 0.80

Calls 4

sscanfFunction · 0.85
moreTerminalsMethod · 0.80
nextTerminalMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected