2014-07-14 21:35:57 +00:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2017-12-20 00:56:36 +00:00
|
|
|
#ifndef PACKAGER_MEDIA_BASE_NETWORK_UTIL_H_
|
|
|
|
#define PACKAGER_MEDIA_BASE_NETWORK_UTIL_H_
|
2014-07-14 21:35:57 +00:00
|
|
|
|
2014-09-30 23:52:58 +00:00
|
|
|
#include <stdint.h>
|
2014-07-14 21:35:57 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-07-14 21:35:57 +00:00
|
|
|
namespace media {
|
|
|
|
|
2014-09-30 21:52:21 +00:00
|
|
|
uint32_t ntohlFromBuffer(const unsigned char* buf);
|
|
|
|
uint16_t ntohsFromBuffer(const unsigned char* buf);
|
|
|
|
uint64_t ntohllFromBuffer(const unsigned char* buf);
|
2014-07-14 21:35:57 +00:00
|
|
|
|
|
|
|
} // namespace media
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-07-14 21:35:57 +00:00
|
|
|
|
2017-12-20 00:56:36 +00:00
|
|
|
#endif // PACKAGER_MEDIA_BASE_NETWORK_UTIL_H_
|