3 ms·
It mostly involves casting a pointer.
by wmf 12y ago
It mostly involves casting a pointer.
- amelius 12y agoIt also involves offsetting the pointer with the beginning of the mmapped area. And this gets really cumbersome if you have to do it for every pointer dereference. Basically all standard libraries are immediately unusable if the language does not provide support for this operation. For example, try storing a C++ std::map inside an mmapped file. Practically not possible AFAIK.