MCPcopy Create free account
hub / github.com/Alan-CRL/Inkeys / getCStringLength

Method getCStringLength

Timeout/InkeysTimeout/json/lib_json/json_value.cpp:602–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600
601#if JSONCPP_USING_SECURE_MEMORY
602 unsigned Value::getCStringLength() const {
603 JSON_ASSERT_MESSAGE(type() == stringValue,
604 "in Json::Value::asCString(): requires stringValue");
605 if (value_.string_ == 0)
606 return 0;
607 unsigned this_len;
608 char const* this_str;
609 decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,
610 &this_str);
611 return this_len;
612 }
613#endif
614
615 bool Value::getString(char const** begin, char const** end) const {

Callers

nothing calls this directly

Calls 2

typeEnum · 0.85
decodePrefixedStringFunction · 0.70

Tested by

no test coverage detected