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

Method writeObject

src/json.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 static bool writeObject(File* file, const FileHelper::SerializationFunc& serialize, EFileFormat format) {
29 JsonFileWriter jfw(format);
30
31 bool result = false;
32 if (jfw.beginObject()) {
33 result = serialize(&jfw);
34 jfw.endObject();
35 }
36 jfw.save(file);
37 return result;
38 }
39
40 virtual bool isReading() const override { return false; }
41

Callers

nothing calls this directly

Calls 3

saveMethod · 0.80
beginObjectMethod · 0.45
endObjectMethod · 0.45

Tested by

no test coverage detected