#defines



MAX_EXTENDED_HASH_TABLE_LENGTH


#define MAX_EXTENDED_HASH_TABLE_LENGTH 0x100000 
Discussion

Maximum size for a version 1 archive's hash table. Thus, the maximum number of files a version 1 MPQ archive can store.


MAX_HASH_TABLE_LENGTH


#define MAX_HASH_TABLE_LENGTH 0x10000 
Discussion

Maximum size for a version 0 archive's hash table. Thus, the maximum number of files a version 0 MPQ archive can store.


MIN_HASH_TABLE_LENGTH


#define MIN_HASH_TABLE_LENGTH 0x10 
Discussion

Minimum size for an archive's hash table. Thus, the minimum number of files an archive MPQ archive can store.


MPQ_MAX_PATH


#define MPQ_MAX_PATH 260 
Discussion

This defines the maximum length in bytes of MPQ file paths. Note that MPQs use regular ANSI C strings.


MPQArchiveLength


See Also:
MPQArchiveSize
#define MPQArchiveSize @"MPQArchiveSize" 
Discussion

Key for the archive size inside archive information dictionaries.

The value of this key will be an NSNumber object.


MPQArchiveOffset


#define MPQArchiveOffset @"MPQArchiveOffset" 
Discussion

Key for the archive offset inside archive information dictionaries. Also used in initWithAttributes:error: to indicate the starting offset of a new archive.

The value of this key will be an NSNumber object.


MPQArchivePath


#define MPQArchivePath @"MPQArchivePath" 
Discussion

Key for the archive path inside archive information dictionaries. Also used in initWithAttributes:error: to indicate the location of an existing archive.

The value of this key will be an NSString object.


MPQArchiveSize


See Also:
MPQArchiveLength
#define MPQArchiveSize @"MPQArchiveSize" 
Discussion

Key for the archive size inside archive information dictionaries.

The value of this key will be an NSNumber object.


MPQArchiveVersion


#define MPQArchiveVersion @"MPQArchiveVersion" 
Discussion

Key for the archive version inside archive information dictionaries. Also used in initWithAttributes:error: to indicate the version of a new archive.

NSNumber objects are expected as the value of this key.


MPQCompressionQuality


#define MPQCompressionQuality @"MPQCompressionQuality" 
Discussion

Key for the compression quality inside file addition parameters dictionaries. Default values are listed for each compressor in the MPQCompressor enum page.

NSNumber objects are expected as the value of this key.


MPQCompressor


#define MPQCompressor @"MPQCompressor" 
Discussion

Key for the compressor inside file addition parameters dictionaries. Note that this will override the default compressor for that specific file only. See the MPQCompressorFlag enum page for valid values.

NSNumber objects are expected as the value of this key.


MPQFileArchiveSize


#define MPQFileArchiveSize @"MPQFileArchiveSize" 
Discussion

Key for the length occupied by the file in the archive inside file information dictionaries.

The value of this key will be an NSNumber object.


MPQFileCanOpenWithoutFilename


#define MPQFileCanOpenWithoutFilename @"MPQFileCanOpenWithoutFilename" 
Discussion

Boolean key which can be checked to know if a file can be opened without knowing its filename. A file may not be opened if it is encrypted and its name is not known.

The value of this key will be an NSNumber object.


MPQFileFlags


#define MPQFileFlags @"MPQFileFlags" 
Discussion

Key for the file flags inside file information dictionaries. Also used in file addition parameters dictionnaries. See the MPQFileFlag enum page for documentation on valid flags.

NSNumber objects are expected as the value of this key.


MPQFileHashA


#define MPQFileHashA @"MPQFileHashA" 
Discussion

Key for the file hash A inside file information dictionaries.

The value of this key will be an NSNumber object.


MPQFileHashB


#define MPQFileHashB @"MPQFileHashB" 
Discussion

Key for the file hash B inside file information dictionaries.

The value of this key will be an NSNumber object.


MPQFileHashPosition


#define MPQFileHashPosition @"MPQFileHashPosition" 
Discussion

Key for the file hash position inside file information dictionaries.

The value of this key will be an NSNumber object.


MPQFileLocale


#define MPQFileLocale @"MPQFileLocale" 
Discussion

Key for the file locale inside file information dictionaries. Also used in file addition parameters dictionnaries. See the MPQLocale enum page for documentation on valid locales.

NSNumber objects are expected as the value of this key.


MPQFilename


#define MPQFilename @"MPQFilename" 
Discussion

Key for the file MPQ path inside file information dictionaries.

The value of this key will be an NSString object.


MPQFileSize


#define MPQFileSize @"MPQFileSize" 
Discussion

Key for the file length inside file information dictionaries.

The value of this key will be an NSNumber object.


MPQMaximumNumberOfFiles


#define MPQMaximumNumberOfFiles @"MPQMaximumNumberOfFiles" 
Discussion

Key for the maximum number of files inside archive information dictionaries. Also used in initWithAttributes:error: to indicate the capacity of a new archive.

The value of this key will be an NSNumber object.


MPQNumberOfFiles


#define MPQNumberOfFiles @"MPQNumberOfFiles" 
Discussion

Key for the number of normal and delete files inside archive information dictionaries.

The value of this key will be an NSNumber object.


MPQNumberOfNormalFiles


#define MPQNumberOfNormalFiles @"MPQNumberOfNormalFiles" 
Discussion

Key for the number of normal files inside archive information dictionaries.

The value of this key will be an NSNumber object.


MPQOverwrite


#define MPQOverwrite @"MPQOverwrite" 
Discussion

Key to indicate if an exiting file should be deleted inside file addition parameters dictionaries.

NSNumber objects are expected as the value of this key.


MPQSectorSizeShift


#define MPQSectorSizeShift @"MPQSectorSizeShift" 
Discussion

Key for the archive sector size binary shift inside archive information dictionaries.

The value of this key will be an NSNumber object.

(Last Updated April 02, 2007)