aboutsummaryrefslogtreecommitdiff
path: root/include/DataView.hpp
diff options
context:
space:
mode:
authorAleksi Lindeman <aleksi_888@hotmail.com>2018-01-28 07:35:37 +0100
committerAleksi Lindeman <aleksi_888@hotmail.com>2018-01-28 07:35:42 +0100
commit80a9c135b8bdca64246f147f22d98485e0f05ee5 (patch)
treecbba6fc450225efe357d9597b2afc1e30283fe16 /include/DataView.hpp
parent0fb28e5bc188440236f0b8888fd520892c97094d (diff)
Add some files...
Diffstat (limited to 'include/DataView.hpp')
-rw-r--r--include/DataView.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/DataView.hpp b/include/DataView.hpp
new file mode 100644
index 0000000..982cb8a
--- /dev/null
+++ b/include/DataView.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "types.hpp"
+
+namespace odhtdb
+{
+ class DataView
+ {
+ public:
+ DataView() : data(nullptr), size(0) {}
+ DataView(void *_data, usize _size) : data(_data), size(_size) {}
+
+ const void *data;
+ const usize size;
+ };
+} \ No newline at end of file