MCPcopy Create free account
hub / github.com/SOUI2/soui / releasePrefixedStringValue

Function releasePrefixedStringValue

third-part/jsoncpp/src/lib_json/json_value.cpp:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 */
153#if JSONCPP_USING_SECURE_MEMORY
154static inline void releasePrefixedStringValue(char* value) {
155 unsigned length = 0;
156 char const* valueDecoded;
157 decodePrefixedString(true, value, &length, &valueDecoded);
158 size_t const size = sizeof(unsigned) + length + 1U;
159 memset(value, 0, size);
160 free(value);
161}
162static inline void releaseStringValue(char* value, unsigned length) {
163 // length==0 => we allocated the strings memory
164 size_t size = (length==0) ? strlen(value) : length;

Callers 1

~ValueMethod · 0.85

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected