Method | Description | |
---|---|---|
Dispose ( ) : void |
|
|
JournalWriter ( int bufferSize, IBlockWriter blockWriter ) : System |
Create a new instance of JournalWriter
|
|
WriteByte ( byte value, bool flush ) : IJournalWriter |
Write a single byte to the journal
|
|
WriteBytes ( ArraySegment |
Write an byte array to the journal
|
|
WriteInt ( int value, bool flush ) : IJournalWriter |
Write an int to the journal
|
|
WriteLong ( long value, bool flush ) : IJournalWriter |
Write a long to the journal
|
Method | Description | |
---|---|---|
OnBufferFull ( ) : void | ||
WriteBlock ( bool moveToNextBlock ) : void | ||
WriteBlockIfRequired ( bool flush ) : void |
public JournalWriter ( int bufferSize, IBlockWriter blockWriter ) : System | ||
bufferSize | int | size of the buffer, IOs will be writen to disk in blocks of this size. Must be a multiple of the disk sector size. /// You can use the following command to determine your disk sector size: "fsutil fsinfo ntfsinfo c:" |
blockWriter | IBlockWriter | the |
return | System |
public WriteByte ( byte value, bool flush ) : IJournalWriter | ||
value | byte | the value to write to the journal |
flush | bool | True to flush to disk, false otherwise. |
return | IJournalWriter |
public WriteBytes ( ArraySegment |
||
value | ArraySegment |
the value to write to the journal |
flush | bool | True to flush to disk, false otherwise. |
return | IJournalWriter |
public WriteInt ( int value, bool flush ) : IJournalWriter | ||
value | int | the value to write to the journal |
flush | bool | True to flush to disk, false otherwise. |
return | IJournalWriter |
public WriteLong ( long value, bool flush ) : IJournalWriter | ||
value | long | the value to write to the journal |
flush | bool | True to flush to disk, false otherwise. |
return | IJournalWriter |