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

Method remap

src/external/qhexview/src/model/buffer/qmappedfilebuffer.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void QMappedFileBuffer::remap() {
44 QFile* f = qobject_cast<QFile*>(m_device);
45 if(!f)
46 return;
47
48 if(m_mappeddata)
49 f->unmap(m_mappeddata);
50 m_mappeddata = f->map(0, f->size());
51}

Callers 2

readMethod · 0.95
writeMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected