diff options
author | Determinant <[email protected]> | 2019-10-13 15:32:16 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-10-13 15:32:16 -0400 |
commit | 8f76e5d8823b684d91e19f8efebe5579e00c8c48 (patch) | |
tree | f0421b5285e0530465de52f4f62ee4855ace7bc0 /include/salticidae/buffer.h | |
parent | 01ad4251c8bc2cc240f7173b7267426085f7e5bb (diff) |
add len()
Diffstat (limited to 'include/salticidae/buffer.h')
-rw-r--r-- | include/salticidae/buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/salticidae/buffer.h b/include/salticidae/buffer.h index c7b11dd..35d10b8 100644 --- a/include/salticidae/buffer.h +++ b/include/salticidae/buffer.h @@ -108,6 +108,7 @@ class SegBuffer { } size_t size() const { return _size; } + size_t len() const { return buffer.size(); } bool empty() const { return buffer.empty(); } void clear() { |