C# Class EQ_Zip.EQArchive

Mostra file Open project: Shendare/EQZip Class Usage Examples

Public Properties

Property Type Description
FilePath string
Files EQArchiveFile>.SortedList
IsDirty bool
SizeOnDisk UInt32
Status Result

Protected Properties

Property Type Description
_Filename string
_FilenameCRCTable UInt32[]
_FooterToken string
_MagicNumber UInt32

Public Methods

Method Description
Add ( EQArchiveFile File ) : System.Result
Add ( EQArchiveFile File, bool ReplaceSimilarImage ) : Result
Add ( string Filename, bool ReplaceSimilarImage ) : Result
Add ( string Filename, bool ReplaceSimilarImage, byte FileContents ) : Result
FindFile ( string Filename ) : EQArchiveFile
FindFileOrSimilarImage ( string Filename ) : EQArchiveFile
Load ( string FilePath ) : EQArchive
Load ( string Filename, byte Contents ) : EQArchive
Remove ( EQArchiveFile File ) : Result
Remove ( string Filename ) : Result
Save ( ) : Result
Save ( string Filename ) : Result

Protected Methods

Method Description
GetFilenameCRC ( char Filename ) : UInt32
GetFilenameCRC ( char Filename, int Length ) : UInt32
GetFilenameCRC ( string Filename ) : UInt32

Private Methods

Method Description
EQArchive ( ) : System

Method Details

Add() public method

public Add ( EQArchiveFile File ) : System.Result
File EQArchiveFile
return System.Result

Add() public method

public Add ( EQArchiveFile File, bool ReplaceSimilarImage ) : Result
File EQArchiveFile
ReplaceSimilarImage bool
return Result

Add() public method

public Add ( string Filename, bool ReplaceSimilarImage ) : Result
Filename string
ReplaceSimilarImage bool
return Result

Add() public method

public Add ( string Filename, bool ReplaceSimilarImage, byte FileContents ) : Result
Filename string
ReplaceSimilarImage bool
FileContents byte
return Result

FindFile() public method

public FindFile ( string Filename ) : EQArchiveFile
Filename string
return EQArchiveFile

FindFileOrSimilarImage() public method

public FindFileOrSimilarImage ( string Filename ) : EQArchiveFile
Filename string
return EQArchiveFile

GetFilenameCRC() protected static method

protected static GetFilenameCRC ( char Filename ) : UInt32
Filename char
return UInt32

GetFilenameCRC() protected static method

protected static GetFilenameCRC ( char Filename, int Length ) : UInt32
Filename char
Length int
return UInt32

GetFilenameCRC() protected static method

protected static GetFilenameCRC ( string Filename ) : UInt32
Filename string
return UInt32

Load() public static method

public static Load ( string FilePath ) : EQArchive
FilePath string
return EQArchive

Load() public static method

public static Load ( string Filename, byte Contents ) : EQArchive
Filename string
Contents byte
return EQArchive

Remove() public method

public Remove ( EQArchiveFile File ) : Result
File EQArchiveFile
return Result

Remove() public method

public Remove ( string Filename ) : Result
Filename string
return Result

Save() public method

public Save ( ) : Result
return Result

Save() public method

public Save ( string Filename ) : Result
Filename string
return Result

Property Details

FilePath public_oe property

public string FilePath
return string

Files public_oe property

public SortedList Files
return EQArchiveFile>.SortedList

IsDirty public_oe property

public bool IsDirty
return bool

SizeOnDisk public_oe property

public UInt32 SizeOnDisk
return UInt32

Status public_oe property

public Result Status
return Result

_Filename protected_oe property

protected string _Filename
return string

_FilenameCRCTable protected_oe static_oe property

protected static UInt32[] _FilenameCRCTable
return UInt32[]

_FooterToken protected_oe static_oe property

protected static string _FooterToken
return string

_MagicNumber protected_oe static_oe property

protected static UInt32 _MagicNumber
return UInt32