mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-27 09:35:45 -05:00
24 lines
298 B
C++
24 lines
298 B
C++
#ifndef BYTEARRAY_H
|
|
#define BYTEARRAY_H
|
|
|
|
#include <string>
|
|
|
|
#include "types.h"
|
|
|
|
namespace si {
|
|
|
|
class bytearray : public std::vector<s8>
|
|
{
|
|
public:
|
|
bytearray();
|
|
|
|
template <typename T>
|
|
T *cast() { return reinterpret_cast<T*>(data()); }
|
|
|
|
std::string hex() const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // BYTEARRAY_H
|