From 80a9c135b8bdca64246f147f22d98485e0f05ee5 Mon Sep 17 00:00:00 2001 From: Aleksi Lindeman Date: Sun, 28 Jan 2018 07:35:37 +0100 Subject: Add some files... --- include/DataView.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/DataView.hpp (limited to 'include/DataView.hpp') 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 -- cgit v1.2.3