Files
odkitee/oemcrypto_ta/oemcrypto_endianness.h
2020-07-24 12:03:58 -07:00

18 lines
497 B
C

// Copyright 2020 Google LLC. All Rights Reserved. This file and proprietary
// source code may only be used and distributed under the Widevine Master
// License Agreement.
#ifndef OEMCRYPTO_ENDIANNESS_H_
#define OEMCRYPTO_ENDIANNESS_H_
#include <stdint.h>
// The functions in this header convert between network and host byte order for
// various basic integer types.
uint32_t HostToNetworkU32(uint32_t host);
uint32_t NetworkToHostU32(uint32_t network);
#endif // OEMCRYPTO_ENDIANNESS_H_