According to Msdn :
Memory-mapped files enable programmers to work with extremely large
files because memory can be managed concurrently, and they allow
complete, random access to a file without the need for seeking
question :
the whole principle of Memory Mappe File is to write/read bytes , and create views by location and offset.
What does it mean “NO need for seeking” ?
I MUST know the start and the end ( offsets) in order to read a file.
So seeking DOES EXISTS !
I Do seek in this huge array of bytes….
What am i missing ?
A MMF has random-access, in contrast with a normal file where there is 1 specific point where reading or writing occurs.
Using offsets (and pointers etc) is not the same as seeking in a stream.
You don’t ‘read a file’, you access memory and need address(es), not a stream-position.