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
(
string data
,
size_t length
,)

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 GKeyFileFlags

flags from #GKeyFileFlags

Return Value

Type: bool

%TRUE if a key file could be loaded, %FALSE otherwise

Throws

GException on failure.

Meta