load_from_data


Description:

public bool load_from_data (string data, size_t length, KeyFileFlags flags) throws KeyFileError

Loads a key file from memory into an empty [struct@GLib.

KeyFile] structure.

If the object cannot be created then a [error@GLib.KeyFileError is returned.

Parameters:

this

an empty key file

data

key file loaded in memory

length

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

flags

flags from [flags@GLib.KeyFileFlags]

Returns:

true if a key file could be loaded, false otherwise