MCPcopy Create free account
hub / github.com/TurningWheel/Barony / writeObject

Method writeObject

src/json.cpp:295–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 }
294
295 static bool writeObject(File * fp, const FileHelper::SerializationFunc & serialize) {
296 BinaryFileWriter bfw(fp);
297
298 bfw.writeHeader();
299
300 if (bfw.beginObject()) {
301 bool result = serialize(&bfw);
302 bfw.endObject();
303 return result;
304 } else {
305 return false;
306 }
307 }
308
309 virtual bool isReading() const override { return false; }
310

Callers

nothing calls this directly

Calls 3

writeHeaderMethod · 0.80
beginObjectMethod · 0.45
endObjectMethod · 0.45

Tested by

no test coverage detected