C# Class Journaler.JournalWriter

TODO
Inheritance: IJournalWriter
Mostrar archivo Open project: odeheurles/Journaler-net

Public Methods

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 value, bool flush ) : IJournalWriter

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

Private Methods

Method Description
OnBufferFull ( ) : void
WriteBlock ( bool moveToNextBlock ) : void
WriteBlockIfRequired ( bool flush ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

JournalWriter() public method

Create a new instance of JournalWriter
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 used to write to disk.
return System

WriteByte() public method

Write a single byte to the journal
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

WriteBytes() public method

Write an byte array to the journal
public WriteBytes ( ArraySegment value, bool flush ) : IJournalWriter
value ArraySegment the value to write to the journal
flush bool True to flush to disk, false otherwise.
return IJournalWriter

WriteInt() public method

Write an int to the journal
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

WriteLong() public method

Write a long to the journal
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