Map a file onto a D type. Experimental.
static struct S { ubyte value; } enum fn = "test.bin"; scope(success) remove(fn); auto m = Mapped!S(fn); m.value = 1; assert(read(fn) == [ubyte(1)]); version (Posix) { write(fn, [ubyte(2)]); assert(m.value == 2); }
See Implementation
Map a file onto a D type. Experimental.