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

Unified Diff: webrtc/base/buffer.h

Issue 2163683003: Relanding: Allow the DTLS fingerprint verification to occur after the handshake. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Responding to Peter's comments. Created 4 years, 5 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
« no previous file with comments | « no previous file | webrtc/base/buffer_unittest.cc » ('j') | webrtc/base/opensslstreamadapter.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/buffer.h
diff --git a/webrtc/base/buffer.h b/webrtc/base/buffer.h
index 545ddb2be7cc91df5b2b695948d1610abe9fe331..e3f43d37b154448d76e274293807cccd2fa9e6a0 100644
--- a/webrtc/base/buffer.h
+++ b/webrtc/base/buffer.h
@@ -134,6 +134,8 @@ class BufferT {
return capacity_;
}
+ bool empty() const { return size() == 0u; }
+
BufferT& operator=(BufferT&& buf) {
RTC_DCHECK(IsConsistent());
RTC_DCHECK(buf.IsConsistent());
« no previous file with comments | « no previous file | webrtc/base/buffer_unittest.cc » ('j') | webrtc/base/opensslstreamadapter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698