I am aware of the QFile::map() function, which maps the bytes of a file into memory. I am wondering how to map the bytes of a file to a struct I have defined, being able to read/write to the file using the struct (in memory). Thanks!