Export media_cas_packager_sdk
This commit is contained in:
25
strings/serialize.h
Normal file
25
strings/serialize.h
Normal file
@@ -0,0 +1,25 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright 2017 Google LLC.
|
||||
//
|
||||
// This software is licensed under the terms defined in the Widevine Master
|
||||
// License Agreement. For a copy of this agreement, please contact
|
||||
// widevine-licensing@google.com.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef STRINGS_SERIALIZE_H_
|
||||
#define STRINGS_SERIALIZE_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace widevine {
|
||||
namespace strings {
|
||||
|
||||
// Convert a 4-byte key in network byte order to uint32_t
|
||||
uint32_t KeyToUint32(const std::string& key);
|
||||
// Encode a unit64 value to a string.
|
||||
std::string EncodeUint64(uint64_t value);
|
||||
|
||||
} // namespace strings
|
||||
} // namespace widevine
|
||||
|
||||
#endif // STRINGS_SERIALIZE_H_
|
||||
Reference in New Issue
Block a user