contentTypeGuess

Guesses the content type based on example data. If the function is uncertain, result_uncertain will be set to true. Either filename or data may be null, in which case the guess will be based solely on the other argument.

string
contentTypeGuess
(
string filename
,
ubyte[] data
,)

Parameters

filename string

a path, or null

data ubyte[]

a stream of data, or null

resultUncertain bool

return location for the certainty of the result, or null

Return Value

Type: string

a string indicating a guessed content type for the given data. Free with glib.global.gfree