summaryrefslogtreecommitdiff
path: root/binparse/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'binparse/types.hpp')
-rw-r--r--binparse/types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/binparse/types.hpp b/binparse/types.hpp
index d1b1910..5d7f7d7 100644
--- a/binparse/types.hpp
+++ b/binparse/types.hpp
@@ -3,6 +3,7 @@
#include <boost/serialization/strong_typedef.hpp>
#include <cstdint>
+#include <array>
namespace binparse {
@@ -19,6 +20,9 @@ BOOST_STRONG_TYPEDEF(uint32_t, Value32)
BOOST_STRONG_TYPEDEF(std::string, PString8);
+typedef std::array<uint8_t, 3> uint24_t;
+BOOST_STRONG_TYPEDEF(uint24_t, Value24);
+
template <typename T>
T operator+(T const lh, T const rh) {
return T(0 + lh + rh);