MPQFile


MPQFile is the root class of a class cluster responsible for reading MPQ files. It can be used for simple one-time extraction or for data streaming.
Superclass: NSObject



MPQFile is both designed and fast enough to be used for file streaming. Indeed, MPQFile objects maintain an internal file pointer, much like NSFileHandle objects. Whenever you read some data from an MPQFile object, the file pointer is increased by the number of bytes read. As such, you may simply repeatedly call the readDataOfLength: method to stream a file. MPQFile offer other facilities, such as seeking and file information.

You should not create MPQFile objects on your own, since MPQFile is the root class of a class cluster. Rather, use MPQArchive's openFile methods to get an MPQFile object for a given MPQ file.



(Last Updated 5/8/2004)
HTML documentation generated by HeaderDoc