MCPcopy Create free account
hub / github.com/PlayFab/gsdk / releasePrefixedStringValue

Function releasePrefixedStringValue

cpp/cppsdk/jsoncpp.cpp:2619–2626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

releasePayloadMethod · 0.85

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected