Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

MappedFile Class Reference

Inheritance diagram for MappedFile:

MappedBuffer List of all members.

Private Member Functions

 this ()
void close ()
void flush ()
void setPosition (uint position)
long seek (long offset, ISeekable.SeekAnchor anchor)
uint writable ()
protected void copy (void *src, uint size)
int write (int(*dg)(void[]))
IBuffer compress ()
IBuffer clear ()
void setConduit (IConduit conduit)

Detailed Description

Class to handle memory-mapped files

Definition at line 722 of file FileConduit.d.


Member Function Documentation

this  )  [inline, inherited]
 

Construct an empty MappedBuffer

Reimplemented from Buffer.

Definition at line 683 of file Buffer.d.

void close  )  [inherited]
 

Close this mapped buffer

Referenced by MappedFile::VersionWindows::~this().

void flush  )  [inherited]
 

Flush any dirty content out to the drive

Reimplemented from Buffer.

void setPosition uint  position  )  [inline, inherited]
 

Set the read/write position

Definition at line 710 of file Buffer.d.

long seek long  offset,
ISeekable.SeekAnchor  anchor
[inline, inherited]
 

Seek to the specified position within the buffer, and return the byte offset of the new location (relative to zero).

Definition at line 722 of file Buffer.d.

uint writable  )  [inline, inherited]
 

Return count of writable bytes available in buffer. This is calculated simply as capacity() - limit()

Reimplemented from Buffer.

Definition at line 744 of file Buffer.d.

protected void copy void *  src,
uint  size
[inline, inherited]
 

Bulk copy of data from 'src'. Position is adjusted by 'size' bytes.

Reimplemented from Buffer.

Definition at line 756 of file Buffer.d.

int write int(*  dg)(void[])  )  [inline, inherited]
 

Exposes the raw data buffer at the current write position, The delegate is provided with a void[] representing space available within the buffer at the current write position.

The delegate should return the appropriate number of bytes if it writes valid content, or IConduit.Eof on error.

Returns whatever the delegate returns.

Reimplemented from Buffer.

Definition at line 775 of file Buffer.d.

References assert().

IBuffer compress  )  [inline, inherited]
 

Prohibit compress() from doing anything at all.

Reimplemented from Buffer.

Definition at line 793 of file Buffer.d.

IBuffer clear  )  [inline, inherited]
 

Prohibit clear() from doing anything at all.

Reimplemented from Buffer.

Definition at line 804 of file Buffer.d.

void setConduit IConduit  conduit  )  [inline, inherited]
 

Prohibit the setting of another IConduit

Reimplemented from Buffer.

Definition at line 815 of file Buffer.d.

References assert().


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 00:31:12 2005 for Mango by doxygen 1.3.6