MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / readFromJSON

Method readFromJSON

Source/Structs/FieldDef.cpp:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void FieldDef::readFromJSON(const QJsonObject& json)
225{
226 m_structOffset = json["offset"].toInt();
227 m_size = json["length"].toInt();
228
229 if (json["entry"] == QJsonValue::Undefined)
230 m_entry = nullptr;
231 else
232 m_entry->readFromJson(json["entry"].toObject());
233}
234
235void FieldDef::writeToJson(QJsonObject& json)
236{

Callers 1

readFromJsonMethod · 0.80

Calls 1

readFromJsonMethod · 0.45

Tested by

no test coverage detected