Scopira  20080306
scopira::tool::filememory Class Reference

#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
 

Detailed Description

A file memory mapped.

Author
Aleksander Demko

Member Function Documentation

◆ open()

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.

Author
Aleksander Demko

The documentation for this class was generated from the following file: