C# Class BplusDotNet.BufferFile

Provides an indexed object which maps to buffers in an underlying file object
Exibir arquivo Open project: benaston/BTree Class Usage Examples

Public Properties

Property Type Description
HEADERPREFIX byte[]
MINBUFFERSIZE int
buffersize int

Public Methods

Method Description
BufferFile ( System fromfile, int buffersize ) : System
BufferFile ( System fromfile, int buffersize, long seekStart ) : System
Flush ( ) : void
InitializeBufferFileInStream ( System fromfile, int buffersize ) : BufferFile
InitializeBufferFileInStream ( System fromfile, int buffersize, long StartSeek ) : BufferFile
Retrieve ( byte ToArray, int atIndex ) : int
RetrieveLong ( byte ToArray, int atIndex ) : long
RetrieveShort ( byte ToArray, int atIndex ) : short
SetupFromExistingStream ( System fromfile ) : BufferFile
SetupFromExistingStream ( System fromfile, long StartSeek ) : BufferFile
Store ( int TheInt, byte ToArray, int atIndex ) : void
Store ( long TheLong, byte ToArray, int atIndex ) : void
Store ( short TheShort, byte ToArray, int atIndex ) : void
getBuffer ( long buffernumber, byte toArray, int startingAt, int length ) : void
makeHeader ( ) : byte[]
nextBufferNumber ( ) : long
readHeader ( ) : void
sanityCheck ( ) : void
setBuffer ( long buffernumber, byte fromArray, int startingAt, int length ) : void
setHeader ( ) : void

Private Methods

Method Description
bufferSeek ( long bufferNumber ) : long

Method Details

BufferFile() public method

public BufferFile ( System fromfile, int buffersize ) : System
fromfile System
buffersize int
return System

BufferFile() public method

public BufferFile ( System fromfile, int buffersize, long seekStart ) : System
fromfile System
buffersize int
seekStart long
return System

Flush() public method

public Flush ( ) : void
return void

InitializeBufferFileInStream() public static method

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

InitializeBufferFileInStream() public static method

public static InitializeBufferFileInStream ( System fromfile, int buffersize, long StartSeek ) : BufferFile
fromfile System
buffersize int
StartSeek long
return BufferFile

Retrieve() public static method

public static Retrieve ( byte ToArray, int atIndex ) : int
ToArray byte
atIndex int
return int

RetrieveLong() public static method

public static RetrieveLong ( byte ToArray, int atIndex ) : long
ToArray byte
atIndex int
return long

RetrieveShort() public static method

public static RetrieveShort ( byte ToArray, int atIndex ) : short
ToArray byte
atIndex int
return short

SetupFromExistingStream() public static method

public static SetupFromExistingStream ( System fromfile ) : BufferFile
fromfile System
return BufferFile

SetupFromExistingStream() public static method

public static SetupFromExistingStream ( System fromfile, long StartSeek ) : BufferFile
fromfile System
StartSeek long
return BufferFile

Store() public static method

public static Store ( int TheInt, byte ToArray, int atIndex ) : void
TheInt int
ToArray byte
atIndex int
return void

Store() public static method

public static Store ( long TheLong, byte ToArray, int atIndex ) : void
TheLong long
ToArray byte
atIndex int
return void

Store() public static method

public static Store ( short TheShort, byte ToArray, int atIndex ) : void
TheShort short
ToArray byte
atIndex int
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

makeHeader() public method

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

nextBufferNumber() public method

public nextBufferNumber ( ) : long
return long

readHeader() public method

public readHeader ( ) : void
return void

sanityCheck() public method

public sanityCheck ( ) : void
return void

setBuffer() public method

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

setHeader() public method

public setHeader ( ) : void
return void

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

buffersize public_oe property

public int buffersize
return int