aboutsummaryrefslogtreecommitdiff
path: root/src/DataView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DataView.cpp')
-rw-r--r--src/DataView.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/DataView.cpp b/src/DataView.cpp
new file mode 100644
index 0000000..63c4f07
--- /dev/null
+++ b/src/DataView.cpp
@@ -0,0 +1,10 @@
+#include "../include/DataView.hpp"
+#include <cstring>
+
+namespace odhtdb
+{
+ bool DataView::operator == (const DataView &other) const
+ {
+ return size == other.size && memcmp(data, other.data, size) == 0;
+ }
+}