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

Method asCString

json/jsoncpp.cpp:3086–3096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3084bool Value::operator!=(const Value& other) const { return !(*this == other); }
3085
3086const char* Value::asCString() const {
3087 JSON_ASSERT_MESSAGE(type_ == stringValue,
3088 "in Json::Value::asCString(): requires stringValue");
3089 if (value_.string_ == 0)
3090 return 0;
3091 unsigned this_len;
3092 char const* this_str;
3093 decodePrefixedString(this->allocated_, this->value_.string_, &this_len,
3094 &this_str);
3095 return this_str;
3096}
3097
3098#if JSONCPP_USING_SECURE_MEMORY
3099unsigned Value::getCStringLength() const {

Callers 1

readObjectMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected