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

Method readObject

src/json.cpp:97–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95public:
96
97 static bool readObject(File * fp, const FileHelper::SerializationFunc & serialize) {
98 JsonFileReader jfr;
99
100 if (!jfr.readAllFileData(fp)) {
101 return false;
102 }
103
104 if (jfr.beginObject()) {
105 bool result = serialize(&jfr);
106 jfr.endObject();
107 return result;
108 } else {
109 return false;
110 }
111 }
112
113 virtual bool isReading() const override { return true; }
114

Callers

nothing calls this directly

Calls 3

readAllFileDataMethod · 0.80
beginObjectMethod · 0.45
endObjectMethod · 0.45

Tested by

no test coverage detected