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

Method asCString

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

Source from the content-addressed store, hash-verified

643bool Value::operator!=(const Value& other) const { return !(*this == other); }
644
645const char* Value::asCString() const {
646 JSON_ASSERT_MESSAGE(type_ == stringValue,
647 "in Json::Value::asCString(): requires stringValue");
648 if (value_.string_ == nullptr)
649 return nullptr;
650 unsigned this_len;
651 char const* this_str;
652 decodePrefixedString(this->allocated_, this->value_.string_, &this_len,
653 &this_str);
654 return this_str;
655}
656
657#if JSONCPP_USING_SECURE_MEMORY
658unsigned Value::getCStringLength() const {

Callers 3

readObjectMethod · 0.80
JSONTEST_FIXTUREFunction · 0.80
decryptJsonValueFunction · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected