MCPcopy Create free account
hub / github.com/Samsung/ONE / decodePrefixedString

Function decodePrefixedString

runtime/3rdparty/jsoncpp/jsoncpp.cpp:2794–2807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2792 return newString;
2793}
2794inline static void decodePrefixedString(bool isPrefixed, char const *prefixed, unsigned *length,
2795 char const **value)
2796{
2797 if (!isPrefixed)
2798 {
2799 *length = static_cast<unsigned>(strlen(prefixed));
2800 *value = prefixed;
2801 }
2802 else
2803 {
2804 *length = *reinterpret_cast<unsigned const *>(prefixed);
2805 *value = prefixed + sizeof(unsigned);
2806 }
2807}
2808/** Free the string duplicated by
2809 * duplicateStringValue()/duplicateAndPrefixStringValue().
2810 */

Callers 8

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

Calls

no outgoing calls

Tested by

no test coverage detected