loadFromData

fun loadFromData(data: String, length: <Error class: unknown class>, flags: KeyFileFlags): <Error class: unknown class><Boolean>

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

Return

true if a key file could be loaded, false otherwise

Since

2.6

Parameters

data

key file loaded in memory

length

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

flags

flags from #GKeyFileFlags