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

VersionMapped::MappedFile Class Reference

Inheritance diagram for VersionMapped::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)

Classes

class  VersionPosix
class  VersionWin32

Member Function Documentation

this  )  [inline, inherited]
 

Construct an empty MappedBuffer

Definition at line 689 of file Buffer.d.

void close  )  [inherited]
 

Close this mapped buffer

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 716 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 728 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 750 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 762 of file Buffer.d.

int write int(*)(void[])  dg  )  [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 781 of file Buffer.d.

References assert().

IBuffer compress  )  [inline, inherited]
 

Prohibit compress() from doing anything at all.

Reimplemented from Buffer.

Definition at line 799 of file Buffer.d.

IBuffer clear  )  [inline, inherited]
 

Prohibit clear() from doing anything at all.

Reimplemented from Buffer.

Definition at line 810 of file Buffer.d.

void setConduit IConduit  conduit  )  [inline, inherited]
 

Prohibit the setting of another IConduit

Reimplemented from Buffer.

Definition at line 821 of file Buffer.d.

References assert().


The documentation for this class was generated from the following file:
Generated on Mon Nov 14 11:00:07 2005 for Mango by  doxygen 1.4.0