load_from_bytes
Description:
[ Version ( since = "2.50" ) ]
public bool load_from_bytes (Bytes bytes, KeyFileFlags flags) throws KeyFileError
public bool load_from_bytes (Bytes bytes, KeyFileFlags flags) throws KeyFileError
Loads a key file from the data in bytes into an empty [struct@GLib.
KeyFile] structure.
If the object cannot be created then a [error@GLib.KeyFileError] is returned.
Parameters:
| this |
an empty [struct@GLib.KeyFile] struct |
| bytes |
a [struct@GLib.Bytes] |
| flags |
flags from [flags@GLib.KeyFileFlags] |
Returns:
|
true if a key file could be loaded, false otherwise |