MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / decodePrefixedString

Function decodePrefixedString

src/share/jsoncpp/jsoncpp.cpp:2587–2598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2585 return newString;
2586}
2587inline static void decodePrefixedString(
2588 bool isPrefixed, char const* prefixed,
2589 unsigned* length, char const** value)
2590{
2591 if (!isPrefixed) {
2592 *length = static_cast<unsigned>(strlen(prefixed));
2593 *value = prefixed;
2594 } else {
2595 *length = *reinterpret_cast<unsigned const*>(prefixed);
2596 *value = prefixed + sizeof(unsigned);
2597 }
2598}
2599/** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue().
2600 */
2601#if JSONCPP_USING_SECURE_MEMORY

Callers 9

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

Calls

no outgoing calls

Tested by

no test coverage detected