Inheritance diagram for FileConduit::VersionWin32::Win32MappedBuffer:
Public Member Functions | |
this (FileConduit parent) | |
~this () | |
void | close () |
void | flush () |
Private Member Functions | |
this () | |
this (uint capacity=0) | |
this (void[] data) | |
this (void[] data, uint readable) | |
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) |
Private Attributes | |
void * | base |
HANDLE | mmFile |
FileConduit | parent |
Definition at line 543 of file FileConduit.d.
|
Ensure this is closed when GC'd Definition at line 592 of file FileConduit.d. References Resource::close(). |
|
Construct a MappedBuffer upon the given FileConduit. One should set the file size using seek() and truncate() to setup the available working space. Definition at line 558 of file FileConduit.d. References ConduitStyle::access(). |
|
Close this mapped buffer Reimplemented from MappedBuffer. Definition at line 603 of file FileConduit.d. |
|
Flush dirty content out to the drive. This fails with error 33 if the file content is virgin. Opening a file for ReadWriteExists followed by a flush() will cause this. Reimplemented from MappedBuffer. Definition at line 624 of file FileConduit.d. |
|
Construct an empty MappedBuffer Reimplemented from Buffer. |
|
Construct a Buffer with the specified number of bytes. Reimplemented in GrowableBuffer. |
|
Prime buffer with an application-supplied array. There is no readable data present, and writing begins at position 0. |
|
Prime buffer with an application-supplied array, and indicate how much readable data is already there. A write operation will begin writing immediately after the existing content. Definition at line 207 of file Buffer.d. References Buffer::readable(), and Buffer::setContent(). |
|
Set the read/write position Definition at line 776 of file Buffer.d. Referenced by testMappedFile(). |
|
Seek to the specified position within the buffer, and return the byte offset of the new location (relative to zero). Definition at line 788 of file Buffer.d. Referenced by FileConduit::VersionWin32::seek(). |
|
Return count of writable bytes available in buffer. This is calculated simply as capacity() - limit() Reimplemented from Buffer. |
|
Bulk copy of data from 'src'. Position is adjusted by 'size' bytes. Reimplemented from Buffer. |
|
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 approriate number of bytes if it writes valid content, or IConduit.Eof on error. Returns whatever the delegate returns. Reimplemented from Buffer. |
|
Prohibit compress() from doing anything at all. Reimplemented from Buffer. |
|
Prohibit clear() from doing anything at all. Reimplemented from Buffer. |
|
Prohibit the setting of another IConduit Reimplemented from Buffer. |
|
Definition at line 545 of file FileConduit.d. |
|
Definition at line 546 of file FileConduit.d. |
|
Definition at line 547 of file FileConduit.d. |