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

Function cf_ReadByte

cfile/cfile.cpp:693–697  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

691// Read and return a byte (8 bits)
692// Throws an exception of type (cfile_error *) if the OS returns an error on read
693int8_t cf_ReadByte(CFILE *cfp) {
694 int8_t i;
695 cf_ReadBytes((uint8_t *)&i, sizeof(i), cfp);
696 return i;
697}
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) {

Callers 15

mng_ReadNewShipPageFunction · 0.85
mng_ReadShipPageFunction · 0.85
mng_FindSpecificShipPageFunction · 0.85
mng_ReadSoundPageFunction · 0.85
mng_ReadGamefilePageFunction · 0.85
mng_ReadPagelockFunction · 0.85
mng_LoadNetPagesFunction · 0.85
mng_LoadLocalPagesFunction · 0.85
mng_TransferPagesFunction · 0.85
ReorderPagesFunction · 0.85

Calls 1

cf_ReadBytesFunction · 0.85

Tested by 1

TESTFunction · 0.68