load_from_data


Description:

public bool load_from_data (string data, ssize_t length = -1) throws Error

Loads data into this, and by doing so clears any previously loaded information.

Parameters:

this

a CssProvider

data

CSS data loaded in memory

length

the length of data in bytes, or -1 for NUL terminated strings. If data.length is not -1, the code will assume it is not NUL terminated and will potentially do a copy.

Returns:

true. The return value is deprecated and false will only be returned for backwards compatibility reasons if an throws is not null and a loading error occurred. To track errors while loading CSS, connect to the parsing_error signal.