C# Class Warcraft.MPQ.FileInfo.MPQFileInfo

Mostrar archivo Open project: Nihlus/libwarcraft

Public Methods

Method Description
GetActualSize ( ) : long

Gets the actual size of the file, once it's been decrypted and decompressed.

GetFlags ( ) : BlockFlags

Gets a set of flags describing the way the file is stored in the archive.

GetLocale ( ) : LocaleID

Gets the locale of the file. The actual values of the enum are Windows LANGID values, but files are most commonly set to 0 (default or neutral locale).

GetPlatform ( ) : ushort

Gets the platform that the file is meant for. A 0 indicates default or platform-neutral.

GetStoredSize ( ) : long

Gets the size of the file as it is in the archive. This is usually smaller than GetActualSize.

MPQFileInfo ( string InPath, HashTableEntry InHashEntry, BlockTableEntry InBlockEntry ) : Warcraft.Core.Locale

Initializes a new instance of the Warcraft.MPQ.FileInfo.MPQFileInfo class.

MPQFileInfo ( string InPath, HashTableEntry InHashEntry, BlockTableEntry InBlockEntry, FileAttributes InAttributes ) : Warcraft.Core.Locale

Initializes a new instance of the Warcraft.MPQ.FileInfo.MPQFileInfo class.

Method Details

GetActualSize() public method

Gets the actual size of the file, once it's been decrypted and decompressed.
public GetActualSize ( ) : long
return long

GetFlags() public method

Gets a set of flags describing the way the file is stored in the archive.
public GetFlags ( ) : BlockFlags
return BlockFlags

GetLocale() public method

Gets the locale of the file. The actual values of the enum are Windows LANGID values, but files are most commonly set to 0 (default or neutral locale).
public GetLocale ( ) : LocaleID
return LocaleID

GetPlatform() public method

Gets the platform that the file is meant for. A 0 indicates default or platform-neutral.
public GetPlatform ( ) : ushort
return ushort

GetStoredSize() public method

Gets the size of the file as it is in the archive. This is usually smaller than GetActualSize.
public GetStoredSize ( ) : long
return long

MPQFileInfo() public method

Initializes a new instance of the Warcraft.MPQ.FileInfo.MPQFileInfo class.
public MPQFileInfo ( string InPath, HashTableEntry InHashEntry, BlockTableEntry InBlockEntry ) : Warcraft.Core.Locale
InPath string In path.
InHashEntry Warcraft.MPQ.Tables.Hash.HashTableEntry In hash entry.
InBlockEntry BlockTableEntry In block entry.
return Warcraft.Core.Locale

MPQFileInfo() public method

Initializes a new instance of the Warcraft.MPQ.FileInfo.MPQFileInfo class.
public MPQFileInfo ( string InPath, HashTableEntry InHashEntry, BlockTableEntry InBlockEntry, FileAttributes InAttributes ) : Warcraft.Core.Locale
InPath string In path.
InHashEntry Warcraft.MPQ.Tables.Hash.HashTableEntry In hash entry.
InBlockEntry BlockTableEntry In block entry.
InAttributes Warcraft.MPQ.Attributes.FileAttributes In attributes.
return Warcraft.Core.Locale