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

Method getString

json/jsoncpp.cpp:3112–3121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3110#endif
3111
3112bool Value::getString(char const** str, char const** cend) const {
3113 if (type_ != stringValue)
3114 return false;
3115 if (value_.string_ == 0)
3116 return false;
3117 unsigned length;
3118 decodePrefixedString(this->allocated_, this->value_.string_, &length, str);
3119 *cend = *str + length;
3120 return true;
3121}
3122
3123JSONCPP_STRING Value::asString() const {
3124 switch (type_) {

Callers 1

writeValueMethod · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected