Phobos /
Memory Mapped File Class
std.mmfile - A platform-independent memory-mapped file class
Author/Contact: Matthew Wilson ( http://synsoft.org/d.html, stlsoft ^at^ hotmail ^dot^ com)
Project Page: None at the moment.
Download URL: None. This will be included in the next release of Phobos.
Mailing list: None.
Summary:
D + C implementation of an auto class MmFile to memory-map files. It provides the following interface:
// Member types
enum Access { read, write };// Construction
this(char[] fileName);// Methodsthis(char[] fileName, uint sizeToMap, Access access);
this(char[] fileName, uint sizeToMap, uint offset, Access access);
this(uint tempSize);
~this(); // Calls close
void flush();// Operators
byte opIndex(uint offset);// Propertiesbyte opIndex(uint offset, byte value);
byte[] opSlice();
byte[] opSlice(uint from, uint to);
uint Length();Status: Win32 and Linux versions implemented. Waiting for Walter's inclusion in next Phobos.
In need of help?: Not at this stage, although comment on the class will be welcome.
Other People Comments: