KeyFile.loadFromBytes

bool loadFromBytes(glib.bytes.Bytes bytes, glib.types.KeyFileFlags flags)

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.

Parameters

bytesa #GBytes
flagsflags from #GKeyFileFlags

Returns

true if a key file could be loaded, false otherwise

Throws

[KeyFileException]