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

Method overwrite

src/chunks.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool Chunks::overwrite(qint64 pos, char b)
232{
233 if ((pos < 0) || (pos >= _size))
234 return false;
235 int chunkIdx = getChunkIndex(pos);
236 qint64 posInBa = pos - _chunks[chunkIdx].absPos;
237 _chunks[chunkIdx].data[(int)posInBa] = b;
238 _chunks[chunkIdx].dataChanged[(int)posInBa] = char(1);
239 _pos = pos;
240 return true;
241}
242
243bool Chunks::removeAt(qint64 pos)
244{

Callers 1

replaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected