C# Class CrystalMpq.MpqNameCache

Represents a cache of file names for MpqArchive.
Multiple MpqArchive in the same file system are likely to share the same filename. Using a common cache for these archives will allow a reduction in memory footprint, and possibly an increase in cache efficiency.
显示文件 Open project: sgraf812/crystalmpq

Public Methods

Method Description
IsFilenameCached ( string value ) : string

Determines whether the specified filename is cached.

MpqNameCache ( ) : System

Initializes a new instance of the MpqNameCache class.

Private Methods

Method Description
GetCachedFilename ( string value ) : string
GetCachedFilenameInternal ( string value, bool allowCaching ) : string

Method Details

IsFilenameCached() public method

Determines whether the specified filename is cached.
public IsFilenameCached ( string value ) : string
value string The value to look up in the cache.
return string

MpqNameCache() public method

Initializes a new instance of the MpqNameCache class.
public MpqNameCache ( ) : System
return System