MCPcopy Create free account
hub / github.com/Samsung/UTopia / releasePrefixedStringValue

Function releasePrefixedStringValue

external/jsoncpp/jsoncpp.cpp:2566–2573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2564 */
2565#if JSONCPP_USING_SECURE_MEMORY
2566static inline void releasePrefixedStringValue(char *value) {
2567 unsigned length = 0;
2568 char const *valueDecoded;
2569 decodePrefixedString(true, value, &length, &valueDecoded);
2570 size_t const size = sizeof(unsigned) + length + 1U;
2571 memset(value, 0, size);
2572 free(value);
2573}
2574static inline void releaseStringValue(char *value, unsigned length) {
2575 // length==0 => we allocated the strings memory
2576 size_t size = (length == 0) ? strlen(value) : length;

Callers 1

releasePayloadMethod · 0.85

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected