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

Function cf_ReadDouble

cfile/cfile.cpp:707–711  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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) {
708 double f;
709 cf_ReadBytes((uint8_t *)&f, sizeof(f), cfp);
710 return D3::convert_le<double>(f);
711}
712// Reads a string from a CFILE. If the file is type binary, this
713// function reads until a NULL or EOF is found. If the file is text,
714// the function reads until a newline or EOF is found. The string is always

Callers 1

osipf_CFReadDoubleFunction · 0.85

Calls 1

cf_ReadBytesFunction · 0.85

Tested by

no test coverage detected