I can read bytes from k to k+L from QFile reading first whole file into QByteArray
if (!file.open(QIODevice::ReadOnly))
//...
QByteArray blob = file.readAll();
QByteArray bytes = blob.mid( k, L);
How to read just bytes from k, to k+L, efficiently ?
if (!file.open(QIODevice::ReadOnly))
//...
QByteArray bytes = bytesFromFile( file, k, L);