aboutsummaryrefslogtreecommitdiff
path: root/ByteBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'ByteBuffer.h')
-rw-r--r--ByteBuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ByteBuffer.h b/ByteBuffer.h
index 444943d..c93b5f1 100644
--- a/ByteBuffer.h
+++ b/ByteBuffer.h
@@ -36,6 +36,10 @@ public:
void copy(uint8_t *bytes, size_t length);
+ ByteBuffer view(size_t length);
+
+ std::string toString() const;
+
private:
void checkAndUpdateSize(size_t count);