C# Class hOOt.Hash

Exibir arquivo Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
Commit ( ) : void
Contains ( byte key ) : bool
Count ( ) : long
Get ( byte key, int &offset ) : bool
Hash ( string indexfilename, byte maxkeysize, short bucketItems = 200, int bucketcount = 10007 ) : System
SaveIndex ( ) : void
Set ( byte key, int offset ) : void
Shutdown ( ) : void

Private Methods

Method Description
ContainsBucket ( byte key ) : bool
CreateBucket ( int bucketNumber ) : Bucket
DirtyBucket ( Bucket b ) : void
FindBucket ( byte key ) : Bucket
FindPointerOrLower ( Bucket b, bytearr key, bool &found ) : int
LoadBucket ( int pagenumber ) : Bucket
SearchBucket ( Bucket b, byte key, int &offset ) : bool
SetBucket ( byte key, int offset, Bucket b ) : Bucket

Method Details

Commit() public method

public Commit ( ) : void
return void

Contains() public method

public Contains ( byte key ) : bool
key byte
return bool

Count() public method

public Count ( ) : long
return long

Get() public method

public Get ( byte key, int &offset ) : bool
key byte
offset int
return bool

Hash() public method

public Hash ( string indexfilename, byte maxkeysize, short bucketItems = 200, int bucketcount = 10007 ) : System
indexfilename string
maxkeysize byte
bucketItems short
bucketcount int
return System

SaveIndex() public method

public SaveIndex ( ) : void
return void

Set() public method

public Set ( byte key, int offset ) : void
key byte
offset int
return void

Shutdown() public method

public Shutdown ( ) : void
return void