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 KeyFile structure.

If the object cannot be created then error is set to a KeyFileError.

Parameters:

this

an empty KeyFile struct

data

key file loaded in memory

length

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

flags

flags from KeyFileFlags

Returns:

true if a key file could be loaded, false otherwise