MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / decodePrefixedString

Function decodePrefixedString

Sources/Dependencies/jsoncpp/value.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 return newString;
143 }
144 inline static void decodePrefixedString(bool isPrefixed, char const* prefixed, unsigned* length, char const** value) {
145 if (!isPrefixed) {
146 *length = static_cast<unsigned>(strlen(prefixed));
147 *value = prefixed;
148 } else {
149 *length = *reinterpret_cast<unsigned const*>(prefixed);
150 *value = prefixed + sizeof(unsigned);
151 }
152 }
153 /** Free the string duplicated by
154 * duplicateStringValue()/duplicateAndPrefixStringValue().
155 */

Callers 9

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

Calls

no outgoing calls

Tested by

no test coverage detected