| 222 | } |
| 223 | |
| 224 | void 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 | |
| 235 | void FieldDef::writeToJson(QJsonObject& json) |
| 236 | { |
no test coverage detected