Handle.from_data


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.14" ) ]
public Handle.from_data (uint8[] data) throws Error

Loads the SVG specified by data.

Note that this function creates an [class@Rsvg.Handle] without a base URL, and without any [flags@Rsvg.HandleFlags]. If you need these, use [ ctor@Rsvg.Handle.new_from_stream_sync] instead by creating a [class@Gio.MemoryInputStream] from your data.

Parameters:

data

The SVG data

data_len

The length of data, in bytes

Returns:

A [class@Rsvg.Handle] or `NULL` if an error occurs.