Source release 19.3.0

This commit is contained in:
John W. Bruce
2024-09-05 07:02:36 +00:00
parent cd8256726f
commit 11c108a8da
122 changed files with 2259 additions and 1082 deletions

View File

@@ -56,6 +56,18 @@ inline int64_t ntohll64(int64_t x) { return htonll64(x); }
// Encode unsigned integer into a big endian formatted string.
std::string EncodeUint32(uint32_t u);
// Converts a byte string representing an ID into a log-friendly form.
//
// Conversion rules:
// 1) empty - returns <empty>
// 2) printable ASCII only - original content, surrounded by double
// quotes; double quotes and backslashes
// are escaped, like C/C++ string literals.
// 3) otherwise - Unquoted, hexadecimal encoded string.
//
// Intended to be used on ID strings which are provided/generated
// from sources outside of the CDM.
std::string SafeByteIdToString(const std::string& id);
std::string SafeByteIdToString(const std::vector<uint8_t>& id);
} // namespace wvutil
#endif // WVCDM_UTIL_STRING_CONVERSIONS_H_