Add EMMG to carry fingerprinting and service blocking info

This commit is contained in:
Lu Chen
2020-09-15 09:16:59 -07:00
parent 3d8f585313
commit 1ce468e5ba
143 changed files with 2316 additions and 17450 deletions

View File

@@ -10,6 +10,7 @@
#define UTIL_ENDIAN_ENDIAN_H_
#include <netinet/in.h>
#include <cstdint>
@@ -19,7 +20,8 @@ namespace widevine {
// order and big-endian byte order (same as network byte order)
class BigEndian {
public:
static uint32_t Load32(const char* data) {
static uint32_t Load32(const char* indata) {
const uint8_t* data = reinterpret_cast<const uint8_t*>(indata);
return (data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3];
}