C# Class CASCExplorer.CASCHandler

Mostra file Open project: WoW-Tools/CASCExplorer Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
FileExists ( int fileDataId ) : bool
FileExists ( string file ) : bool
FileExists ( ulong hash ) : bool
GetEncodingEntry ( ulong hash, EncodingEntry &enc ) : bool
OpenFile ( int fileDataId ) : Stream
OpenFile ( string name ) : Stream
OpenFile ( ulong hash ) : Stream
OpenLocalStorage ( string basePath, BackgroundWorkerEx worker = null ) : CASCHandler
OpenOnlineStorage ( string product, string region = "us", BackgroundWorkerEx worker = null ) : CASCHandler
OpenStorage ( CASCExplorer.CASCConfig config, BackgroundWorkerEx worker = null ) : CASCHandler
SaveFileTo ( ulong hash, string extractPath, string fullName ) : void

Protected Methods

Method Description
ExtractFileOnline ( MD5Hash key, string path, string name ) : void
GetLocalDataStream ( MD5Hash key ) : Stream
OpenFileOnline ( MD5Hash key ) : Stream

Private Methods

Method Description
CASCHandler ( CASCExplorer.CASCConfig config, BackgroundWorkerEx worker ) : System
Open ( BackgroundWorkerEx worker, CASCExplorer.CASCConfig config ) : CASCHandler

Method Details

Clear() public method

public Clear ( ) : void
return void

ExtractFileOnline() protected method

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

FileExists() public method

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

FileExists() public method

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

FileExists() public method

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

GetEncodingEntry() public method

public GetEncodingEntry ( ulong hash, EncodingEntry &enc ) : bool
hash ulong
enc EncodingEntry
return bool

GetLocalDataStream() protected method

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

OpenFile() public method

public OpenFile ( int fileDataId ) : Stream
fileDataId int
return Stream

OpenFile() public method

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

OpenFile() public method

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

OpenFileOnline() protected method

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

OpenLocalStorage() public static method

public static OpenLocalStorage ( string basePath, BackgroundWorkerEx worker = null ) : CASCHandler
basePath string
worker BackgroundWorkerEx
return CASCHandler

OpenOnlineStorage() public static method

public static OpenOnlineStorage ( string product, string region = "us", BackgroundWorkerEx worker = null ) : CASCHandler
product string
region string
worker BackgroundWorkerEx
return CASCHandler

OpenStorage() public static method

public static OpenStorage ( CASCExplorer.CASCConfig config, BackgroundWorkerEx worker = null ) : CASCHandler
config CASCExplorer.CASCConfig
worker BackgroundWorkerEx
return CASCHandler

SaveFileTo() public method

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