C# Class BplusDotNet.LinkedFile

Chunked singly linked file with garbage collection.
Afficher le fichier Open project: benaston/BTree Class Usage Examples

Méthodes publiques

Свойство Type Description
BUFFEROVERHEAD int
HEADERPREFIX byte[]
MINBUFFERSIZE int
VERSION byte

Méthodes publiques

Méthode Description
Flush ( ) : void
GetChunk ( long HeadBufferNumber ) : byte[]
InitializeLinkedFileInStream ( System fromfile, int buffersize ) : LinkedFile
InitializeLinkedFileInStream ( System fromfile, int buffersize, long StartSeek ) : LinkedFile
LinkedFile ( int buffersize, long seekStart ) : System
Recover ( Hashtable ChunksInUse, bool FixErrors ) : void
ReleaseBuffers ( long HeadBufferNumber ) : void
SetupFromExistingStream ( System fromfile ) : LinkedFile
SetupFromExistingStream ( System fromfile, long StartSeek ) : LinkedFile
Shutdown ( ) : void
StoreNewChunk ( byte fromArray, int startingAt, int length ) : long
checkStructure ( ) : void
checkStructure ( Hashtable ChunksInUse, bool FixErrors ) : void
makeHeader ( ) : byte[]
setHeader ( ) : void

Private Methods

Méthode Description
AllocateBuffer ( ) : long
DeallocateBuffer ( long buffernumber ) : void
ParseBuffer ( long bufferNumber, byte &type, long &nextBufferNumber ) : byte[]
SetBuffer ( long buffernumber, byte type, byte thebuffer, int start, int length, long NextBufferNumber ) : void
readHeader ( ) : void
sanityCheck ( ) : void

Method Details

Flush() public méthode

public Flush ( ) : void
Résultat void

GetChunk() public méthode

public GetChunk ( long HeadBufferNumber ) : byte[]
HeadBufferNumber long
Résultat byte[]

InitializeLinkedFileInStream() public static méthode

public static InitializeLinkedFileInStream ( System fromfile, int buffersize ) : LinkedFile
fromfile System
buffersize int
Résultat LinkedFile

InitializeLinkedFileInStream() public static méthode

public static InitializeLinkedFileInStream ( System fromfile, int buffersize, long StartSeek ) : LinkedFile
fromfile System
buffersize int
StartSeek long
Résultat LinkedFile

LinkedFile() public méthode

public LinkedFile ( int buffersize, long seekStart ) : System
buffersize int
seekStart long
Résultat System

Recover() public méthode

public Recover ( Hashtable ChunksInUse, bool FixErrors ) : void
ChunksInUse System.Collections.Hashtable
FixErrors bool
Résultat void

ReleaseBuffers() public méthode

public ReleaseBuffers ( long HeadBufferNumber ) : void
HeadBufferNumber long
Résultat void

SetupFromExistingStream() public static méthode

public static SetupFromExistingStream ( System fromfile ) : LinkedFile
fromfile System
Résultat LinkedFile

SetupFromExistingStream() public static méthode

public static SetupFromExistingStream ( System fromfile, long StartSeek ) : LinkedFile
fromfile System
StartSeek long
Résultat LinkedFile

Shutdown() public méthode

public Shutdown ( ) : void
Résultat void

StoreNewChunk() public méthode

public StoreNewChunk ( byte fromArray, int startingAt, int length ) : long
fromArray byte
startingAt int
length int
Résultat long

checkStructure() public méthode

public checkStructure ( ) : void
Résultat void

checkStructure() public méthode

public checkStructure ( Hashtable ChunksInUse, bool FixErrors ) : void
ChunksInUse System.Collections.Hashtable
FixErrors bool
Résultat void

makeHeader() public méthode

public makeHeader ( ) : byte[]
Résultat byte[]

setHeader() public méthode

public setHeader ( ) : void
Résultat void

Property Details

BUFFEROVERHEAD public_oe static_oe property

public static int BUFFEROVERHEAD
Résultat int

HEADERPREFIX public_oe static_oe property

public static byte[] HEADERPREFIX
Résultat byte[]

MINBUFFERSIZE public_oe static_oe property

public static int MINBUFFERSIZE
Résultat int

VERSION public_oe static_oe property

public static byte VERSION
Résultat byte