load_from_data


Description:

public uint load_from_data (string data, ssize_t length) throws Error

Loads the definitions from data into this and merges with the currently loaded ones, if any.

Parameters:

this

a Script

data

a buffer containing the definitions

length

the length of the buffer, or -1 if data is a NUL-terminated buffer

Returns:

on error, zero is returned and error is set accordingly. On success, the merge id for the UI definitions is returned. You can use the merge id with unmerge_objects.




2022 vala-language.org