Method | Description | |
---|---|---|
BufferedFile ( |
Creates a file backed memory stream.
|
|
ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void |
Changes the extension of the current file.
|
|
ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void |
Reopens the file with different permissions.
|
|
CommitChanges ( FileHeaderBlock header ) : void |
Executes a commit of data. This will flush the data to the disk use the provided header data to properly execute this function.
|
|
CreateIoSession ( ) : |
Creates a BinaryStreamIoSessionBase that can be used to read from this disk medium.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
RollbackChanges ( ) : void |
Rolls back all edits to the DiskMedium
|
Method | Description | |
---|---|---|
GetBlock ( |
Populates the pointer data inside args for the desired block as specified in args. This function will block if needing to retrieve data from the disk.
|
|
GetBlockFromCommittedSpace ( |
Processes the GetBlock from the committed area. The valid length is at least the size of the buffer pools page size. |
|
ReleaseWriteBufferSpace ( ) : void |
Releases the buffered data contained in the buffer pool. This is acomplished by disposing of the writer and recreating it.
|
|
m_pool_RequestCollection ( object sender, |
Handles the MemoryPool.RequestCollection event.
|
public BufferedFile ( |
||
stream | The |
|
pool | The |
|
header | FileHeaderBlock | The |
isNewFile | bool | Tells if this is a newly created file. This will make sure that the /// first 10 pages have the header data copied to it. |
return | System |
public ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void | ||
extension | string | the new extension |
isReadOnly | bool | If the file should be reopened as readonly |
isSharingEnabled | bool | If the file should share read privileges. |
return | void |
public ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void | ||
isReadOnly | bool | If the file should be reopened as readonly |
isSharingEnabled | bool | If the file should share read privileges. |
return | void |
public CommitChanges ( FileHeaderBlock header ) : void | ||
header | FileHeaderBlock | |
return | void |
public CreateIoSession ( ) : |
||
return |