summaryrefslogtreecommitdiffstats
path: root/remoting/base/compound_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/base/compound_buffer.h')
-rw-r--r--remoting/base/compound_buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/base/compound_buffer.h b/remoting/base/compound_buffer.h
index 050182a..1b0a546 100644
--- a/remoting/base/compound_buffer.h
+++ b/remoting/base/compound_buffer.h
@@ -52,6 +52,10 @@ class CompoundBuffer {
void AppendCopyOf(const char* data, int data_size);
void PrependCopyOf(const char* data, int data_size);
+ // Drop |bytes| bytes from the beginning or the end of the buffer.
+ void CropFront(int bytes);
+ void CropBack(int bytes);
+
// Current size of the buffer.
int total_bytes() const { return total_bytes_; }