MimeCache.this

Read mime cache from given file (usually mime.cache from one of mime paths) 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.

  1. this(string fileName)
    class MimeCache
    @trusted
    this
    (
    string fileName
    )
  2. this(immutable(void)[] data, string fileName)

Throws

FileException if could not map file into memory. MimeCacheException if provided file is not valid mime cache or unsupported version.

Meta