MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / serialize

Method serialize

launcher/ApplicationMessage.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55QByteArray ApplicationMessage::serialize() {
56 QJsonObject root;
57 root.insert("command", command);
58 QJsonObject outArgs;
59 for (auto iter = args.begin(); iter != args.end(); iter++) {
60 outArgs[iter.key()] = iter.value();
61 }
62 root.insert("args", outArgs);
63
64 return Json::toText(root);
65}

Callers 3

ApplicationMethod · 0.45
test_PositiveMethod · 0.45
test_NegativeMethod · 0.45

Calls 4

toTextFunction · 0.85
insertMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by 2

test_PositiveMethod · 0.36
test_NegativeMethod · 0.36