C# Class CASCExplorer.CASCHandlerBase

显示文件 Open project: WoW-Tools/CASCExplorer Class Usage Examples

Protected Properties

Property Type Description
CDNIndex CDNIndexHandler
DataStreams Stream>.Dictionary
Hasher Jenkins96
LocalIndex LocalIndexHandler

Public Methods

Method Description
CASCHandlerBase ( CASCExplorer.CASCConfig config, BackgroundWorkerEx worker ) : System
FileExists ( int fileDataId ) : bool
FileExists ( string file ) : bool
FileExists ( ulong hash ) : bool
OpenFile ( MD5Hash key ) : Stream
OpenFile ( int filedata ) : Stream
OpenFile ( string name ) : Stream
OpenFile ( ulong hash ) : Stream
SaveFileTo ( MD5Hash key, string path, string name ) : void
SaveFileTo ( string fullName, string extractPath ) : void
SaveFileTo ( ulong hash, string extractPath, string fullName ) : void

Protected Methods

Method Description
ExtractFileOnline ( MD5Hash key, string path, string name ) : void
ExtractFileOnlineInternal ( IndexEntry idxInfo, MD5Hash key, string path, string name ) : void
GetLocalDataStream ( MD5Hash key ) : Stream
GetLocalDataStreamInternal ( IndexEntry idxInfo, MD5Hash key ) : Stream
OpenDownloadFile ( EncodingHandler enc, CASCHandlerBase casc ) : BinaryReader
OpenEncodingFile ( CASCHandlerBase casc ) : BinaryReader
OpenFileOnline ( MD5Hash key ) : Stream
OpenFileOnlineInternal ( IndexEntry idxInfo, MD5Hash key ) : Stream
OpenInstallFile ( EncodingHandler enc, CASCHandlerBase casc ) : BinaryReader
OpenRootFile ( EncodingHandler enc, CASCHandlerBase casc ) : BinaryReader

Private Methods

Method Description
ExtractFileLocal ( MD5Hash key, string path, string name ) : void
GetDataStream ( int index ) : Stream
OpenFileLocal ( MD5Hash key ) : Stream

Method Details

CASCHandlerBase() public method

public CASCHandlerBase ( CASCExplorer.CASCConfig config, BackgroundWorkerEx worker ) : System
config CASCExplorer.CASCConfig
worker BackgroundWorkerEx
return System

ExtractFileOnline() protected abstract method

protected abstract ExtractFileOnline ( MD5Hash key, string path, string name ) : void
key MD5Hash
path string
name string
return void

ExtractFileOnlineInternal() protected method

protected ExtractFileOnlineInternal ( IndexEntry idxInfo, MD5Hash key, string path, string name ) : void
idxInfo IndexEntry
key MD5Hash
path string
name string
return void

FileExists() public abstract method

public abstract FileExists ( int fileDataId ) : bool
fileDataId int
return bool

FileExists() public abstract method

public abstract FileExists ( string file ) : bool
file string
return bool

FileExists() public abstract method

public abstract FileExists ( ulong hash ) : bool
hash ulong
return bool

GetLocalDataStream() protected abstract method

protected abstract GetLocalDataStream ( MD5Hash key ) : Stream
key MD5Hash
return Stream

GetLocalDataStreamInternal() protected method

protected GetLocalDataStreamInternal ( IndexEntry idxInfo, MD5Hash key ) : Stream
idxInfo IndexEntry
key MD5Hash
return Stream

OpenDownloadFile() protected method

protected OpenDownloadFile ( EncodingHandler enc, CASCHandlerBase casc ) : BinaryReader
enc EncodingHandler
casc CASCHandlerBase
return System.IO.BinaryReader

OpenEncodingFile() protected method

protected OpenEncodingFile ( CASCHandlerBase casc ) : BinaryReader
casc CASCHandlerBase
return System.IO.BinaryReader

OpenFile() public method

public OpenFile ( MD5Hash key ) : Stream
key MD5Hash
return Stream

OpenFile() public abstract method

public abstract OpenFile ( int filedata ) : Stream
filedata int
return Stream

OpenFile() public abstract method

public abstract OpenFile ( string name ) : Stream
name string
return Stream

OpenFile() public abstract method

public abstract OpenFile ( ulong hash ) : Stream
hash ulong
return Stream

OpenFileOnline() protected abstract method

protected abstract OpenFileOnline ( MD5Hash key ) : Stream
key MD5Hash
return Stream

OpenFileOnlineInternal() protected method

protected OpenFileOnlineInternal ( IndexEntry idxInfo, MD5Hash key ) : Stream
idxInfo IndexEntry
key MD5Hash
return Stream

OpenInstallFile() protected static method

protected static OpenInstallFile ( EncodingHandler enc, CASCHandlerBase casc ) : BinaryReader
enc EncodingHandler
casc CASCHandlerBase
return System.IO.BinaryReader

OpenRootFile() protected method

protected OpenRootFile ( EncodingHandler enc, CASCHandlerBase casc ) : BinaryReader
enc EncodingHandler
casc CASCHandlerBase
return System.IO.BinaryReader

SaveFileTo() public method

public SaveFileTo ( MD5Hash key, string path, string name ) : void
key MD5Hash
path string
name string
return void

SaveFileTo() public method

public SaveFileTo ( string fullName, string extractPath ) : void
fullName string
extractPath string
return void

SaveFileTo() public abstract method

public abstract SaveFileTo ( ulong hash, string extractPath, string fullName ) : void
hash ulong
extractPath string
fullName string
return void

Property Details

CDNIndex protected_oe property

protected CDNIndexHandler,CASCExplorer CDNIndex
return CDNIndexHandler

DataStreams protected_oe property

protected Dictionary DataStreams
return Stream>.Dictionary

Hasher protected_oe static_oe property

protected static Jenkins96,CASCExplorer Hasher
return Jenkins96

LocalIndex protected_oe property

protected LocalIndexHandler,CASCExplorer LocalIndex
return LocalIndexHandler