C# 클래스 Journaler.JournalWriter

TODO
상속: IJournalWriter
파일 보기 프로젝트 열기: odeheurles/Journaler-net

공개 메소드들

메소드 설명
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