| 6 | bool QHexBuffer::isEmpty() const { return this->length() <= 0; } |
| 7 | |
| 8 | void QHexBuffer::replace(qint64 offset, const QByteArray& data) { |
| 9 | this->remove(offset, data.length()); |
| 10 | this->insert(offset, data); |
| 11 | } |
| 12 | |
| 13 | void QHexBuffer::read(char* data, int size) { |
| 14 | QBuffer* buffer = new QBuffer(this); |