1
0
Fork 0
x64dbg/x64_dbg_gui/Project/Src/QHexEdit/XByteArray.h

33 lines
646 B
C++

#ifndef XBYTEARRAY_H
#define XBYTEARRAY_H
#include <QtCore>
class XByteArray
{
public:
explicit XByteArray();
QByteArray & data();
void setData(QByteArray data);
int size();
QByteArray & insert(int i, char ch);
QByteArray & insert(int i, const QByteArray & ba);
QByteArray & remove(int pos, int len);
QByteArray & replace(int index, char ch);
QByteArray & replace(int index, const QByteArray & ba);
QByteArray & replace(int index, int length, const QByteArray & ba);
signals:
public slots:
private:
QByteArray _data; //raw byte array
};
#endif // XBYTEARRAY_H