MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / cf_ReadFloat

Function cf_ReadFloat

cfile/cfile.cpp:700–704  ·  view source on GitHub ↗

Read and return a float (32 bits) Throws an exception of type (cfile_error *) if the OS returns an error on read

Source from the content-addressed store, hash-verified

698// Read and return a float (32 bits)
699// Throws an exception of type (cfile_error *) if the OS returns an error on read
700float cf_ReadFloat(CFILE *cfp) {
701 float f;
702 cf_ReadBytes((uint8_t *)&f, sizeof(f), cfp);
703 return INTEL_FLOAT(f);
704}
705// Read and return a double (64 bits)
706// Throws an exception of type (cfile_error *) if the OS returns an error on read
707double cf_ReadDouble(CFILE *cfp) {

Callers 15

mng_ReadNewShipPageFunction · 0.85
mng_ReadShipPageFunction · 0.85
mng_ReadNewSoundPageFunction · 0.85
mng_ReadSoundPageFunction · 0.85
mng_ReadPhysicsChunkFunction · 0.85
mng_ReadLightingChunkFunction · 0.85
mng_ReadNewGenericPageFunction · 0.85
mng_ReadGenericPageFunction · 0.85
mng_ReadNewDoorPageFunction · 0.85
mng_ReadDoorPageFunction · 0.85
mng_ReadTexturePageFunction · 0.85

Calls 1

cf_ReadBytesFunction · 0.85

Tested by

no test coverage detected