tango.io.device.FileMap
License:
BSD style:
Version:
Initial release: March 2004
author:
Kris
- class FileMap: tango.io.device.Array.Array;
- this(const(char[]) path, File.Style style = File.ReadWriteOpen);
- Construct a FileMap upon the given path.
You should use resize() to setup the available
working space.
- final ubyte[] resize(long size);
- Resize the file and return the remapped content. Usage of
map() is not required following this call.
- void close();
- Release external resources.
- class MappedFile;
- this(const(char[]) path, File.Style style = File.ReadWriteOpen);
- Construct a FileMap upon the given path.
You should use resize() to setup the available
working space.
- final @property long length();
- final @property const(char)[] path();
- final ubyte[] resize(long size);
- Resize the file and return the remapped content. Usage of
map() is not required following this call.
- final @property ubyte[] map();
- Return a slice representing file content as a
memory-mapped array. Use this to remap content
each time the file size is changed.
- final void close();
- Release this mapped buffer without flushing.
- final MappedFile flush();
- Flush dirty content out to the drive.
Page generated by Ddoc. Copyright (c) 2004 Kris Bell. All rights reserved