MCPcopy Create free account
hub / github.com/clementgallet/libTAS / replace

Method replace

src/external/qhexview/src/model/buffer/qhexbuffer.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

undoMethod · 0.45
redoMethod · 0.45

Calls 3

removeMethod · 0.45
lengthMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected