aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/conn.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h
index 53d51a3..f290e3d 100644
--- a/include/salticidae/conn.h
+++ b/include/salticidae/conn.h
@@ -114,6 +114,12 @@ class SegBuffer {
_size += data.size();
buffer.push_back(buffer_entry_t(std::move(data)));
}
+
+ bytearray_t move_pop() {
+ auto res = std::move(buffer.front().data);
+ buffer.pop_front();
+ return std::move(res);
+ }
bytearray_t pop(size_t len) {
bytearray_t res;