I'm trying to map a file to memory using mmap function, but whenever I set an offset I get an error!! I tried to google it but no use! could you guys help me with this?
here's my code: it's a template for "type" by the way. In the implementation I replace it by double
I found the solution. The offset has to be multiples of the system page-size which is 4096 byes. I think I'll have to include this internally in my object to support a real offset.