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

Method asCString

cpp/cppsdk/jsoncpp.cpp:3083–3093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

JsonFileConfigurationMethod · 0.80
readObjectMethod · 0.80
TEST_METHODFunction · 0.80

Calls 1

decodePrefixedStringFunction · 0.85

Tested by 1

TEST_METHODFunction · 0.64