KeyFile.loadFromBytes

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

class KeyFile
bool
loadFromBytes

Parameters

bytes glib.bytes.Bytes

a #GBytes

flags glib.types.KeyFileFlags

flags from #GKeyFileFlags

Return Value

Type: bool

true if a key file could be loaded, false otherwise