MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / size

Method size

src/server/angelscript/json/jsonvalue.cpp:439–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439unsigned JSONValue::size() const {
440 if (isArrayType) {
441 std::cout << "Array size: " << arrayPtr->size() << std::endl;
442 return arrayPtr->size();
443 }
444 if (isObjectType) {
445 std::cout << "Object size: " << objectPtr->size() << std::endl;
446 return objectPtr->size();
447 }
448
449 /* if (GetValueType() == JSON_ARRAY) { return (*arrayValue_)->size(); }
450 else if (GetValueType() == JSON_OBJECT) { return (*objectValue_)->size(); } */
451
452 return 0;
453}
454
455JSONValue& JSONValue::operator [](const std::string& key) {
456 // Convert to object type

Callers 15

media_open_cbFunction · 0.45
mainFunction · 0.45
parseArgumentsMethod · 0.45
getTextArgumentMethod · 0.45
getItemCountMethod · 0.45
getItemCountMethod · 0.45
parseArgumentsMethod · 0.45
getTextArgumentMethod · 0.45
mainFunction · 0.45
create_dataFunction · 0.45

Calls

no outgoing calls

Tested by 4

media_open_cbFunction · 0.36
mainFunction · 0.36
create_dataFunction · 0.36
printFunction · 0.36