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

Function decodePrefixedString

cpp/cppsdk/jsoncpp.cpp:2603–2614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2601 return newString;
2602}
2603inline static void decodePrefixedString(bool isPrefixed,
2604 char const* prefixed,
2605 unsigned* length,
2606 char const** value) {
2607 if (!isPrefixed) {
2608 *length = static_cast<unsigned>(strlen(prefixed));
2609 *value = prefixed;
2610 } else {
2611 *length = *reinterpret_cast<unsigned const*>(prefixed);
2612 *value = prefixed + sizeof(unsigned);
2613 }
2614}
2615/** Free the string duplicated by
2616 * duplicateStringValue()/duplicateAndPrefixStringValue().
2617 */

Callers 9

operator<Method · 0.85
operator==Method · 0.85
asCStringMethod · 0.85
getCStringLengthMethod · 0.85
getStringMethod · 0.85
asStringMethod · 0.85
asConstStringMethod · 0.85
dupPayloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected