MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / decodePrefixedString

Function decodePrefixedString

json/jsoncpp.cpp:2605–2616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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