Source release 19.3.0
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user