MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / clear

Method clear

json/jsoncpp.cpp:3393–3407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

parseMethod · 0.45
readValueMethod · 0.45
readObjectMethod · 0.45
getValidReaderKeysFunction · 0.45
writeMethod · 0.45
isMultilineArrayMethod · 0.45
newStreamWriterMethod · 0.45
getValidWriterKeysFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected