Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: webrtc/base/byteorder.h

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/base/byteorder.h
diff --git a/webrtc/base/byteorder.h b/webrtc/base/byteorder.h
index d907d9e41280dea3ad10aaed78f4ad8f8b730783..98a082feb8bfd5a318de81340e17a600678731b7 100644
--- a/webrtc/base/byteorder.h
+++ b/webrtc/base/byteorder.h
@@ -63,6 +63,12 @@ inline uint16 GetBE16(const void* memory) {
(Get8(memory, 1) << 0));
}
+inline uint32 GetBE24(const void* memory) {
+ return (static_cast<uint32>(Get8(memory, 0)) << 16) |
+ (static_cast<uint32>(Get8(memory, 1)) << 8) |
+ (static_cast<uint32>(Get8(memory, 2)) << 0);
+}
+
inline uint32 GetBE32(const void* memory) {
return (static_cast<uint32>(Get8(memory, 0)) << 24) |
(static_cast<uint32>(Get8(memory, 1)) << 16) |

Powered by Google App Engine
This is Rietveld 408576698