MimeCache.this - multiple declarations
Function MimeCache.this
Read mime cache from given file (usually mime.cache from one of mime paths)
this
(
string fileName
) @trusted;
Note
File will be mapped into memory with MmFile.
Warning
Strings returned from MimeCache can't be considered permanent and must be copied with dup or idup if their lifetime is longer than this object's one.
Throws
FileException if could not map file into memory.
MimeCacheException
if provided file is not valid mime cache or unsupported version.
Function MimeCache.this
Read mime cache from given data.
this
(
immutable(void)[] data,
string fileName = null
) @safe;
Throws
MimeCacheException
if provided file is not valid mime cache or unsupported version.