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

Method writeToJson

Source/Structs/StructDef.cpp:189–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void StructDef::writeToJson(QJsonObject& json)
190{
191 json["label"] = m_label;
192 json["length"] = static_cast<double>(m_length);
193
194 QJsonArray fieldArray;
195 for (FieldDef* const field : m_fields)
196 {
197 QJsonObject node;
198 field->writeToJson(node);
199 fieldArray.append(node);
200 }
201 json["fieldList"] = fieldArray;
202}
203
204bool StructDef::isSame(const StructDef* other) const
205{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected