| 2293 | return newString; |
| 2294 | } |
| 2295 | inline static void decodePrefixedString( |
| 2296 | bool isPrefixed, char const* prefixed, |
| 2297 | unsigned* length, char const** value) { |
| 2298 | if (!isPrefixed) { |
| 2299 | *length = static_cast<unsigned>(strlen(prefixed)); |
| 2300 | *value = prefixed; |
| 2301 | } else { |
| 2302 | *length = *reinterpret_cast<unsigned const*>(prefixed); |
| 2303 | *value = prefixed + sizeof(unsigned); |
| 2304 | } |
| 2305 | } |
| 2306 | /** Free the string duplicated by duplicateStringValue()/duplicateAndPrefixStringValue(). |
| 2307 | */ |
| 2308 | static inline void releaseStringValue(char* value) { OG_FREE(value); } |
no outgoing calls
no test coverage detected