MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / setDataChanged

Method setDataChanged

src/chunks.cpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150// ***************************************** Set and get highlighting infos
151
152void Chunks::setDataChanged(qint64 pos, bool dataChanged)
153{
154 if ((pos < 0) || (pos >= _size))
155 return;
156 int chunkIdx = getChunkIndex(pos);
157 qint64 posInBa = pos - _chunks[chunkIdx].absPos;
158 _chunks[chunkIdx].dataChanged[(int)posInBa] = char(dataChanged);
159}
160
161bool Chunks::dataChanged(qint64 pos)
162{

Callers 1

undoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected