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

Function releasePrefixedStringValue

external/jsoncpp/jsoncpp.cpp:2623–2630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2621 */
2622#if JSONCPP_USING_SECURE_MEMORY
2623static inline void releasePrefixedStringValue(char* value) {
2624 unsigned length = 0;
2625 char const* valueDecoded;
2626 decodePrefixedString(true, value, &length, &valueDecoded);
2627 size_t const size = sizeof(unsigned) + length + 1U;
2628 memset(value, 0, size);
2629 free(value);
2630}
2631static inline void releaseStringValue(char* value, unsigned length) {
2632 // length==0 => we allocated the strings memory
2633 size_t size = (length==0) ? strlen(value) : length;

Callers 1

~ValueMethod · 0.85

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected