C# Класс Journaler.JournalWriter

TODO
Наследование: IJournalWriter
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
OnBufferFull ( ) : void
WriteBlock ( bool moveToNextBlock ) : void
WriteBlockIfRequired ( bool flush ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

JournalWriter() публичный Метод

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.
Результат System

WriteByte() публичный Метод

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.
Результат IJournalWriter

WriteBytes() публичный Метод

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.
Результат IJournalWriter

WriteInt() публичный Метод

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.
Результат IJournalWriter

WriteLong() публичный Метод

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.
Результат IJournalWriter