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

Function cf_WriteFloat

cfile/cfile.cpp:818–821  ·  view source on GitHub ↗

Write a float (32 bits) Throws an exception of type (cfile_error *) if the OS returns an error on write

Source from the content-addressed store, hash-verified

816// Write a float (32 bits)
817// Throws an exception of type (cfile_error *) if the OS returns an error on write
818void cf_WriteFloat(CFILE *cfp, float f) {
819 float t = INTEL_FLOAT(f);
820 cf_WriteBytes((uint8_t *)&t, sizeof(t), cfp);
821}
822
823// Write a double (64 bits)
824// Throws an exception of type (cfile_error *) if the OS returns an error on write

Callers 15

mng_WriteShipPageFunction · 0.85
mng_WriteNewShipPageFunction · 0.85
mng_WriteSoundPageFunction · 0.85
mng_WriteNewSoundPageFunction · 0.85
mng_WritePhysicsChunkFunction · 0.85
mng_WriteLightingChunkFunction · 0.85
mng_WriteGenericPageFunction · 0.85
mng_WriteNewGenericPageFunction · 0.85
mng_WriteDoorPageFunction · 0.85
mng_WriteNewDoorPageFunction · 0.85
mng_WriteTexturePageFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected