1 #ifndef BLUB_CORE_BYTEARRAY_HPP
2 #define BLUB_CORE_BYTEARRAY_HPP
4 #include "blub/core/globals.hpp"
5 #include "blub/serialization/access.hpp"
6 #include "blub/serialization/nameValuePair.hpp"
8 #include <boost/serialization/base_object.hpp>
9 #include <boost/serialization/vector.hpp>
20 typedef std::vector<char> t_base;
31 byteArray(
const char *array, uint32 size);
40 byteArray mid(
const uint32& index,
const int32& length = -1)
const;
43 return static_cast<uint32
>(t_base::size());
49 BLUB_SERIALIZATION_ACCESS
51 template <
class formatType>
52 void serialize(formatType & ar,
const uint32& version)
56 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t_base);
63 #endif // BLUB_CORE_BYTEARRAY_HPP
Definition: byteArray.hpp:17
Definition: deadlineTimer.hpp:10
byteArray mid(const uint32 &index, const int32 &length=-1) const
mid gets an copy from a specified index for a length
Definition: byteArray.cpp:30