[ Version ( since = "1.16" ) ]
public Caps? type_find_helper_for_data_with_extension (Object? obj, uint8 data, string? extension, out TypeFindProbability prob)
Tries to find what type of data is contained in the given
data, the assumption being that the data represents the beginning of the
stream or file.
All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of
MAXIMUM, typefinding is stopped immediately and the found
caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be
null if the content of
data could not be identified.
extension is not
null, this function will first try the typefind functions for the given extension, which might
speed up the typefinding in many cases.
object doing the typefinding, or
* a pointer with data to typefind
extension of the media, or
location to store the probability of the found caps, or
the size of
the Caps corresponding to the data, or