C# Class CrystalMpq.MpqFile

Show file Open project: sgraf812/crystalmpq Class Usage Examples

Private Properties

Property Type Description
MpqFile System

Public Methods

Method Description
Open ( ) : MpqFileStream

Opens the file for reading.

Files can only be opened once, so don't forget to close the stream after you've used it.

Open ( Stream baseStream ) : MpqFileStream

Opens a patched file for reading.

This method should only be used for explicitly providing a base stream when the MpqFile is a patch. Files can only be opened once, so don't forget to close the stream after you've used it.

Private Methods

Method Description
MpqFile ( MpqArchive archive, uint index ) : System

Method Details

Open() public method

Opens the file for reading.
Files can only be opened once, so don't forget to close the stream after you've used it.
public Open ( ) : MpqFileStream
return MpqFileStream

Open() public method

Opens a patched file for reading.
This method should only be used for explicitly providing a base stream when the MpqFile is a patch. Files can only be opened once, so don't forget to close the stream after you've used it.
This instance of is not a patch. is null.
public Open ( Stream baseStream ) : MpqFileStream
baseStream Stream A base stream.
return MpqFileStream