MCPcopy Create free account
hub / github.com/PlayFab/gsdk / clear

Method clear

cpp/cppsdk/jsoncpp.cpp:3390–3404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3388Value::operator bool() const { return !isNull(); }
3389
3390void Value::clear() {
3391 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
3392 type_ == objectValue,
3393 "in Json::Value::clear(): requires complex value");
3394 start_ = 0;
3395 limit_ = 0;
3396 switch (type_) {
3397 case arrayValue:
3398 case objectValue:
3399 value_.map_->clear();
3400 break;
3401 default:
3402 break;
3403 }
3404}
3405
3406void Value::resize(ArrayIndex newSize) {
3407 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue,

Callers 15

parseMethod · 0.80
readValueMethod · 0.80
readObjectMethod · 0.80
getValidReaderKeysFunction · 0.80
writeMethod · 0.80
isMultilineArrayMethod · 0.80
newStreamWriterMethod · 0.80
getValidWriterKeysFunction · 0.80
ForgetAllCredentialsMethod · 0.80
~PlayFabHttpMethod · 0.80
FromJsonUtilTFunction · 0.80
FromJsonUtilEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected