MCPcopy Create free account
hub / github.com/PlayFab/gsdk / getCStringLength

Method getCStringLength

cpp/cppsdk/jsoncpp.cpp:3096–3106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3094
3095#if JSONCPP_USING_SECURE_MEMORY
3096unsigned Value::getCStringLength() const {
3097 JSON_ASSERT_MESSAGE(type_ == stringValue,
3098 "in Json::Value::asCString(): requires stringValue");
3099 if (value_.string_ == 0)
3100 return 0;
3101 unsigned this_len;
3102 char const* this_str;
3103 decodePrefixedString(this->allocated_, this->value_.string_, &this_len,
3104 &this_str);
3105 return this_len;
3106}
3107#endif
3108
3109bool Value::getString(char const** begin, char const** end) const {

Callers

nothing calls this directly

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected