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

Function cf_WriteDouble

cfile/cfile.cpp:825–828  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

823// Write a double (64 bits)
824// Throws an exception of type (cfile_error *) if the OS returns an error on write
825void cf_WriteDouble(CFILE *cfp, double d) {
826 auto t = D3::convert_le<double>(d);
827 cf_WriteBytes((uint8_t *)&t, sizeof(t), cfp);
828}
829
830// Copies a file. Returns TRUE if copied ok. Returns FALSE if error opening either file.
831// Throws an exception of type (cfile_error *) if the OS returns an error on read or write

Callers 1

osipf_CFWriteDoubleFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected