MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / arrayPtr

Method arrayPtr

source/core/StarJson.cpp:244–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244JsonArrayConstPtr Json::arrayPtr() const {
245 if (type() != Type::Array)
246 throw JsonException::format("Improper conversion to JsonArray from {}", typeName());
247 return m_data.get<JsonArrayConstPtr>();
248}
249
250JsonObjectConstPtr Json::objectPtr() const {
251 if (type() != Type::Object)

Callers 2

toMethod · 0.80
jsonContainerToTableMethod · 0.80

Calls 2

formatFunction · 0.70
typeFunction · 0.50

Tested by

no test coverage detected