C# Class bsharptree.io.BufferFile

Provides an indexed object which maps to buffers in an underlying file object
显示文件 Open project: thoward/bsharptree Class Usage Examples

Public Properties

Property Type Description
HeaderPrefix byte[]
MinBufferSize int

Public Methods

Method Description
BufferFile ( Stream fromFile, int buffersize ) : System.IO
BufferFile ( Stream fromFile, int buffersize, long seekStart ) : System.IO
Flush ( ) : void
GetBuffer ( long buffernumber, byte toArray, int startingAt, int length ) : void
InitializeBufferFileInStream ( Stream fromfile, int buffersize ) : BufferFile
InitializeBufferFileInStream ( Stream fromfile, int buffersize, long startSeek ) : BufferFile
MakeHeader ( ) : byte[]
NextBufferNumber ( ) : long
SetBuffer ( long buffernumber, byte fromArray, int startingAt, int length ) : void
SetupFromExistingStream ( Stream fromfile ) : BufferFile
SetupFromExistingStream ( Stream fromfile, long startSeek ) : BufferFile

Private Methods

Method Description
BufferSeek ( long bufferNumber ) : long
ReadHeader ( ) : void
SanityCheck ( ) : void
SetHeader ( ) : void

Method Details

BufferFile() public method

public BufferFile ( Stream fromFile, int buffersize ) : System.IO
fromFile System.IO.Stream
buffersize int
return System.IO

BufferFile() public method

public BufferFile ( Stream fromFile, int buffersize, long seekStart ) : System.IO
fromFile System.IO.Stream
buffersize int
seekStart long
return System.IO

Flush() public method

public Flush ( ) : void
return void

GetBuffer() public method

public GetBuffer ( long buffernumber, byte toArray, int startingAt, int length ) : void
buffernumber long
toArray byte
startingAt int
length int
return void

InitializeBufferFileInStream() public static method

public static InitializeBufferFileInStream ( Stream fromfile, int buffersize ) : BufferFile
fromfile System.IO.Stream
buffersize int
return BufferFile

InitializeBufferFileInStream() public static method

public static InitializeBufferFileInStream ( Stream fromfile, int buffersize, long startSeek ) : BufferFile
fromfile System.IO.Stream
buffersize int
startSeek long
return BufferFile

MakeHeader() public method

public MakeHeader ( ) : byte[]
return byte[]

NextBufferNumber() public method

public NextBufferNumber ( ) : long
return long

SetBuffer() public method

public SetBuffer ( long buffernumber, byte fromArray, int startingAt, int length ) : void
buffernumber long
fromArray byte
startingAt int
length int
return void

SetupFromExistingStream() public static method

public static SetupFromExistingStream ( Stream fromfile ) : BufferFile
fromfile System.IO.Stream
return BufferFile

SetupFromExistingStream() public static method

public static SetupFromExistingStream ( Stream fromfile, long startSeek ) : BufferFile
fromfile System.IO.Stream
startSeek long
return BufferFile

Property Details

HeaderPrefix public_oe static_oe property

public static byte[] HeaderPrefix
return byte[]

MinBufferSize public_oe static_oe property

public static int MinBufferSize
return int