summaryrefslogtreecommitdiffstats
path: root/include/framework/structure/BufferView.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2025-09-25 14:42:44 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2025-09-25 14:42:44 -0400
commitcf5f3bbb0cb58430ed68ad3ebfcefc009e553d71 (patch)
tree4c17bc3169ee195c236cea9c9efda0aef7488e3c /include/framework/structure/BufferView.h
parent826c1fff5accbaa6b415acc176a5acbeb5f691b6 (diff)
downloaddynamic-extension-cf5f3bbb0cb58430ed68ad3ebfcefc009e553d71.tar.gz
Code reformatting
Diffstat (limited to 'include/framework/structure/BufferView.h')
-rw-r--r--include/framework/structure/BufferView.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/framework/structure/BufferView.h b/include/framework/structure/BufferView.h
index a9fb12d..afe5dbb 100644
--- a/include/framework/structure/BufferView.h
+++ b/include/framework/structure/BufferView.h
@@ -46,10 +46,9 @@ public:
BufferView(Wrapped<R> *buffer, size_t cap, size_t head, size_t tail,
size_t tombstone_cnt, psudb::BloomFilter<R> *filter)
- : m_data(buffer), m_head(head), m_tail(tail),
- m_start(m_head % cap), m_stop(m_tail % cap), m_cap(cap),
- m_approx_ts_cnt(tombstone_cnt), m_tombstone_filter(filter),
- m_active(true) {}
+ : m_data(buffer), m_head(head), m_tail(tail), m_start(m_head % cap),
+ m_stop(m_tail % cap), m_cap(cap), m_approx_ts_cnt(tombstone_cnt),
+ m_tombstone_filter(filter), m_active(true) {}
~BufferView() = default;
@@ -104,9 +103,7 @@ public:
*/
size_t get_tombstone_count() { return m_approx_ts_cnt; }
- Wrapped<R> *get(size_t i) {
- return m_data + to_idx(i);
- }
+ Wrapped<R> *get(size_t i) { return m_data + to_idx(i); }
void copy_to_buffer(psudb::byte *buffer) {
/* check if the region to be copied circles back to start. If so, do it in