MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / clear

Method clear

edrav2/eprj/jsoncpp/src/lib_json/json_value.cpp:952–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950Value::operator bool() const { return !isNull(); }
951
952void Value::clear() {
953 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue ||
954 type_ == objectValue,
955 "in Json::Value::clear(): requires complex value");
956 start_ = 0;
957 limit_ = 0;
958 switch (type_) {
959 case arrayValue:
960 case objectValue:
961 value_.map_->clear();
962 break;
963 default:
964 break;
965 }
966}
967
968void Value::resize(ArrayIndex newSize) {
969 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue,

Callers 11

parseMethod · 0.45
readValueMethod · 0.45
readObjectMethod · 0.45
getValidReaderKeysFunction · 0.45
writeMethod · 0.45
isMultilineArrayMethod · 0.45
newStreamWriterMethod · 0.45
getValidWriterKeysFunction · 0.45
JSONTEST_FIXTUREFunction · 0.45
callbackMethod · 0.45
toJsonValueMethod · 0.45

Calls

no outgoing calls

Tested by 2

callbackMethod · 0.36
toJsonValueMethod · 0.36