| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2  *  Copyright 2004 The WebRTC Project Authors. All rights reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| 11 #ifndef WEBRTC_RTC_BASE_BYTEBUFFER_H_ | 11 #ifndef WEBRTC_RTC_BASE_BYTEBUFFER_H_ | 
| 12 #define WEBRTC_RTC_BASE_BYTEBUFFER_H_ | 12 #define WEBRTC_RTC_BASE_BYTEBUFFER_H_ | 
| 13 | 13 | 
| 14 #include <string> | 14 #include <string> | 
| 15 | 15 | 
| 16 #include "webrtc/base/basictypes.h" | 16 #include "webrtc/rtc_base/basictypes.h" | 
| 17 #include "webrtc/base/buffer.h" | 17 #include "webrtc/rtc_base/buffer.h" | 
| 18 #include "webrtc/base/constructormagic.h" | 18 #include "webrtc/rtc_base/constructormagic.h" | 
| 19 | 19 | 
| 20 namespace rtc { | 20 namespace rtc { | 
| 21 | 21 | 
| 22 class ByteBuffer { | 22 class ByteBuffer { | 
| 23  public: | 23  public: | 
| 24   enum ByteOrder { | 24   enum ByteOrder { | 
| 25     ORDER_NETWORK = 0,  // Default, use network byte order (big endian). | 25     ORDER_NETWORK = 0,  // Default, use network byte order (big endian). | 
| 26     ORDER_HOST,         // Use the native order of the host. | 26     ORDER_HOST,         // Use the native order of the host. | 
| 27   }; | 27   }; | 
| 28 | 28 | 
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 130   size_t size_; | 130   size_t size_; | 
| 131   size_t start_; | 131   size_t start_; | 
| 132   size_t end_; | 132   size_t end_; | 
| 133 | 133 | 
| 134   RTC_DISALLOW_COPY_AND_ASSIGN(ByteBufferReader); | 134   RTC_DISALLOW_COPY_AND_ASSIGN(ByteBufferReader); | 
| 135 }; | 135 }; | 
| 136 | 136 | 
| 137 }  // namespace rtc | 137 }  // namespace rtc | 
| 138 | 138 | 
| 139 #endif  // WEBRTC_RTC_BASE_BYTEBUFFER_H_ | 139 #endif  // WEBRTC_RTC_BASE_BYTEBUFFER_H_ | 
| OLD | NEW | 
|---|