summaryrefslogtreecommitdiff
path: root/point.cpp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-10 22:29:10 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-10 22:29:10 -0300
commit45e4e70ec50bc0d743dadc415e0c4a0695ce63fa (patch)
tree45f4cbcd6ccd013941dc990bef2aa3e760fad034 /point.cpp
parent7908b37141271f671a31f5dc7dd6341a037a4b27 (diff)
downloadjet-45e4e70ec50bc0d743dadc415e0c4a0695ce63fa.tar.gz
jet-45e4e70ec50bc0d743dadc415e0c4a0695ce63fa.zip
make clear the separation of client and buffer
Diffstat (limited to 'point.cpp')
-rw-r--r--point.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/point.cpp b/point.cpp
index 0e80e7f..5422350 100644
--- a/point.cpp
+++ b/point.cpp
@@ -61,6 +61,7 @@ struct Point {
Point() : page(0), index(0) {}
Point(Page* page, uint16_t index) : page(page), index(index) {}
+ Point(const Buffer &b) : page(b.storage), index(0) {}
Point(const Point &p) : page(p.page), index(p.index) {}
bool operator==(Point p) {