aboutsummaryrefslogtreecommitdiff
path: root/ByteBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'ByteBuffer.h')
-rw-r--r--ByteBuffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ByteBuffer.h b/ByteBuffer.h
index c93b5f1..828ee4b 100644
--- a/ByteBuffer.h
+++ b/ByteBuffer.h
@@ -20,6 +20,14 @@ public:
return size;
}
+ inline size_t getCapacity() {
+ return capacity;
+ }
+
+ inline size_t getCursor() {
+ return cursor;
+ }
+
inline void setCursor(size_t newCursor) {
cursor = newCursor;
}