Function MimeCache.findMimeTypesByData

Find all MIME type alternatives for data matching it against magic rules.

auto std.algorithm.iteration.MapResult!(mime.cache.MimeCache.findMimeTypesByData(scopeconst(void)[]).__lambda3,std.algorithm.iteration.FilterResult!(mime.cache.MimeCache.findMimeTypesByData(scopeconst(void)[]).__lambda2,std.range.SortedRange!(std.algorithm.iteration.MapResult!(mime.cache.MimeCache.allMagicMatchesImpl().__lambda2,std.algorithm.iteration.MapResult!(mime.cache.MimeCache.allMagicMatchesImpl().__lambda1,std.range.iota!(uint,uint).iota(uint,uint).Result).MapResult).MapResult,"(a.weight > b.weight) || (a.weight == b.weight && a.mimeType < b.mimeType)",0).SortedRange).FilterResult) findMimeTypesByData (
  scope const(void)[] data
) pure @trusted const;

Parameters

NameDescription
data data to check against magic.

Returns

Range of MimeTypeAlternative tuples matching given data sorted by weight descending.