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

Function cf_WriteShort

cfile/cfile.cpp:800–803  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

798// Write a int16_t (16 bits)
799// Throws an exception of type (cfile_error *) if the OS returns an error on write
800void cf_WriteShort(CFILE *cfp, int16_t s) {
801 int16_t t = INTEL_SHORT(s);
802 cf_WriteBytes((uint8_t *)&t, sizeof(t), cfp);
803}
804
805// Write a byte (8 bits).
806// 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_WriteNewSoundPageFunction · 0.85
mng_WriteNewGamefilePageFunction · 0.85
mng_WriteNewMegacellPageFunction · 0.85
mng_WriteGenericPageFunction · 0.85
mng_WriteNewGenericPageFunction · 0.85
mng_WriteNewDoorPageFunction · 0.85
mng_WriteNewTexturePageFunction · 0.85
mng_WriteNewWeaponPageFunction · 0.85
SaveRoomFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected