C# Class Journaler.JournalWriter

TODO
Inheritance: IJournalWriter
Afficher le fichier Open project: odeheurles/Journaler-net

Méthodes publiques

Méthode 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

Méthode Description
OnBufferFull ( ) : void
WriteBlock ( bool moveToNextBlock ) : void
WriteBlockIfRequired ( bool flush ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

JournalWriter() public méthode

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.
Résultat System

WriteByte() public méthode

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.
Résultat IJournalWriter

WriteBytes() public méthode

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.
Résultat IJournalWriter

WriteInt() public méthode

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.
Résultat IJournalWriter

WriteLong() public méthode

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.
Résultat IJournalWriter