MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / WriteInteger

Function WriteInteger

src/SerializedValues.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50template <typename INT_TYPE> void WriteInteger(FILE* fp, INT_TYPE num) {
51 size_t unitsWritten = fwrite(&num, sizeof(INT_TYPE), 1, fp);
52 if (unitsWritten != 1) {
53 throw InvalidFormat("Cannot write binary dictionary.");
54 }
55}
56
57} // namespace
58

Callers 1

SerializeToFileMethod · 0.85

Calls 1

fwriteFunction · 0.85

Tested by

no test coverage detected