summaryrefslogtreecommitdiff
path: root/binparse/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'binparse/types.hpp')
-rw-r--r--binparse/types.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/binparse/types.hpp b/binparse/types.hpp
new file mode 100644
index 0000000..e92a7a6
--- /dev/null
+++ b/binparse/types.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <boost/serialization/strong_typedef.hpp>
+
+#include <cstdint>
+
+namespace binparse {
+
+BOOST_STRONG_TYPEDEF(uint16_t, Magic16)
+
+BOOST_STRONG_TYPEDEF(uint8_t, Offset8)
+BOOST_STRONG_TYPEDEF(uint8_t, Value8)
+
+BOOST_STRONG_TYPEDEF(uint16_t, Offset16)
+BOOST_STRONG_TYPEDEF(uint16_t, Value16)
+
+BOOST_STRONG_TYPEDEF(uint32_t, Offset32)
+BOOST_STRONG_TYPEDEF(uint32_t, Value32)
+
+} \ No newline at end of file