MCPcopy Create free account
hub / github.com/Illumina/paragraph / decodePrefixedString

Function decodePrefixedString

external/jsoncpp/jsoncpp.cpp:2608–2619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2606 return newString;
2607}
2608inline static void decodePrefixedString(
2609 bool isPrefixed, char const* prefixed,
2610 unsigned* length, char const** value)
2611{
2612 if (!isPrefixed) {
2613 *length = static_cast<unsigned>(strlen(prefixed));
2614 *value = prefixed;
2615 } else {
2616 *length = *reinterpret_cast<unsigned const*>(prefixed);
2617 *value = prefixed + sizeof(unsigned);
2618 }
2619}
2620/** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue().
2621 */
2622#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