KeyFile.loadFromData

Loads a key file from memory into an empty #GKeyFile structure. If the object cannot be created then error is set to a #GKeyFileError.

class KeyFile
bool
loadFromData

Parameters

data string

key file loaded in memory

length size_t

the length of data in bytes (or (gsize)-1 if data is nul-terminated)

flags glib.types.KeyFileFlags

flags from #GKeyFileFlags

Return Value

Type: bool

true if a key file could be loaded, false otherwise