C# Class CASCExplorer.CASCHandlerLite

Inheritance: CASCHandlerBase
Show file Open project: WoW-Tools/CASCExplorer

Public Methods

Method Description
FileExists ( int fileDataId ) : bool
FileExists ( string file ) : bool
FileExists ( ulong hash ) : bool
OpenFile ( int filedata ) : Stream
OpenFile ( string name ) : Stream
OpenFile ( ulong hash ) : Stream
OpenLocalStorage ( string basePath, LocaleFlags locale, BackgroundWorkerEx worker = null ) : CASCHandlerLite
OpenOnlineStorage ( string product, LocaleFlags locale, string region = "us", BackgroundWorkerEx worker = null ) : CASCHandlerLite
OpenStorage ( LocaleFlags locale, CASCExplorer.CASCConfig config, BackgroundWorkerEx worker = null ) : CASCHandlerLite
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
CASCHandlerLite ( CASCExplorer.CASCConfig config, LocaleFlags locale, BackgroundWorkerEx worker ) : System
Open ( LocaleFlags locale, BackgroundWorkerEx worker, CASCExplorer.CASCConfig config ) : CASCHandlerLite

Method Details

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

GetLocalDataStream() protected method

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

OpenFile() public method

public OpenFile ( int filedata ) : Stream
filedata 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, LocaleFlags locale, BackgroundWorkerEx worker = null ) : CASCHandlerLite
basePath string
locale LocaleFlags
worker BackgroundWorkerEx
return CASCHandlerLite

OpenOnlineStorage() public static method

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

OpenStorage() public static method

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

SaveFileTo() public method

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