|
Scopira
20080306
|
#include <fileflow.h>
Public Types | |
| enum | { read_c = 1, write_c = 2, private_c = 4 } |
| typedef ::off_t | offset_t |
Public Member Functions | |
| filememory (void) | |
| constructor | |
| ~filememory () | |
| destructor | |
| void * | c_array (void) const |
| gets the memory pointer, null for none right now | |
| bool | open (fileflow &f, size_t len, int flags=read_c|write_c) |
| void | close (void) |
| explicitply close the map | |
| void | sync (void) |
| sync the map with the disk, uses async | |
A file memory mapped.
| bool scopira::tool::filememory::open | ( | fileflow & | f, |
| size_t | len, | ||
| int | flags = read_c|write_c |
||
| ) |
Opens a new file mappping. Will close any existing ones. Mapping will start from the start of the file and be (alteast) len bytes long.