C# Class hOOt.IndexFile

ファイルを表示 Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Public Methods

Method Description
Commit ( Bucket>.IDictionary buckets ) : bool
CountBuckets ( ) : long
GetBucketList ( ) : List
GetNewPageNumber ( ) : int
IndexFile ( string filename, byte maxKeySize, short pageNodeCount, int bucketcount ) : System
LoadBucketFromPage ( int page ) : Bucket
SaveBucket ( Bucket bucket ) : void
SaveBucketList ( List list ) : void
Shutdown ( ) : void

Private Methods

Method Description
BucketHeaderCount ( int nextbucket, long &c ) : int
CreateFileHeader ( ) : void
ReadFileHeader ( ) : bool
SeekPage ( int pnum ) : void

Method Details

Commit() public method

public Commit ( Bucket>.IDictionary buckets ) : bool
buckets Bucket>.IDictionary
return bool

CountBuckets() public method

public CountBuckets ( ) : long
return long

GetBucketList() public method

public GetBucketList ( ) : List
return List

GetNewPageNumber() public method

public GetNewPageNumber ( ) : int
return int

IndexFile() public method

public IndexFile ( string filename, byte maxKeySize, short pageNodeCount, int bucketcount ) : System
filename string
maxKeySize byte
pageNodeCount short
bucketcount int
return System

LoadBucketFromPage() public method

public LoadBucketFromPage ( int page ) : Bucket
page int
return Bucket

SaveBucket() public method

public SaveBucket ( Bucket bucket ) : void
bucket Bucket
return void

SaveBucketList() public method

public SaveBucketList ( List list ) : void
list List
return void

Shutdown() public method

public Shutdown ( ) : void
return void