C# Class EventStore.Core.TransactionLog.Unbuffered.UnbufferedFileStream

Inheritance: Stream
Mostra file Open project: EventStore/EventStore

Public Methods

Method Description
Create ( string path, FileMode mode, FileAccess acc, FileShare share, bool sequential, int internalWriteBufferSize, int internalReadBufferSize, bool writeThrough, uint minBlockSize ) : UnbufferedFileStream
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Align ( IntPtr buf, uint alignTo ) : byte*
CheckDisposed ( ) : void
CopyBuffer ( byte buffer, long offset, long count ) : void
GetLowestAlignment ( long offset ) : long
InternalWrite ( byte buffer, uint count ) : void
MemCopy ( byte src, long srcOffset, byte dest, long destOffset, long count ) : void
SeekInternal ( long positionAligned ) : void
SetBuffer ( long alignedbuffer, long left ) : void
UnbufferedFileStream ( SafeFileHandle handle, uint blockSize, int internalWriteBufferSize, int internalReadBufferSize ) : System

Method Details

Create() public static method

public static Create ( string path, FileMode mode, FileAccess acc, FileShare share, bool sequential, int internalWriteBufferSize, int internalReadBufferSize, bool writeThrough, uint minBlockSize ) : UnbufferedFileStream
path string
mode FileMode
acc FileAccess
share FileShare
sequential bool
internalWriteBufferSize int
internalReadBufferSize int
writeThrough bool
minBlockSize uint
return UnbufferedFileStream

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void