SIEdit/lib/bytearray.h
2022-06-27 09:44:50 -07:00

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