C# Class KFS.Disks.Disk

Represents a disk. Caches the most recent block read.
Inheritance: IDataStream
Datei anzeigen Open project: Alex-Jaeger/BitcoinFindAndRecover

Public Methods

Method Description
Close ( ) : void
GetBytes ( ulong offset, ulong length ) : byte[]
Open ( ) : void

Protected Methods

Method Description
ForceReadBytes ( byte buffer, ulong offset, ulong length ) : void
LoadCacheLine ( ulong cache_line ) : void

Method Details

Close() public method

public Close ( ) : void
return void

ForceReadBytes() protected abstract method

protected abstract ForceReadBytes ( byte buffer, ulong offset, ulong length ) : void
buffer byte
offset ulong
length ulong
return void

GetBytes() public method

public GetBytes ( ulong offset, ulong length ) : byte[]
offset ulong
length ulong
return byte[]

LoadCacheLine() protected method

protected LoadCacheLine ( ulong cache_line ) : void
cache_line ulong
return void

Open() public method

public Open ( ) : void
return void