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

Function requireArray

launcher/Json.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 return doc.object();
101}
102QJsonArray requireArray(const QJsonDocument &doc, const QString &what)
103{
104 if (!doc.isArray())
105 {
106 throw JsonException(what + " is not an array");
107 }
108 return doc.array();
109}
110
111void writeString(QJsonObject &to, const QString &key, const QString &value)
112{

Callers 15

requireIsArrayOfFunction · 0.85
modrinthProjectsTaskMethod · 0.85
flameVersionsTaskMethod · 0.85
flameProjectsTaskMethod · 0.85
loadIndexedPackMethod · 0.85
loadShareCodeFunction · 0.85
loadVersionModFunction · 0.85
loadVersionKeepsFunction · 0.85
loadVersionDeletesFunction · 0.85
loadVersionMethod · 0.85
loadPackFunction · 0.85
loadPackBuildFunction · 0.85

Calls 1

JsonExceptionClass · 0.85

Tested by

no test coverage detected