Using QByteArray and QFile instead of FILE and int16_t, adapting to code style corrections?