Handle.newFromData

rsvg.handle.Handle newFromData(ubyte[] data)

Loads the SVG specified by data. Note that this function creates an [rsvg.handle.Handle] without a base URL, and without any [rsvg.types.HandleFlags]. If you need these, use [rsvg.handle.Handle.newFromStreamSync] instead by creating a [gio.memory_input_stream.MemoryInputStream] from your data.

Parameters

dataThe SVG data

Returns

A [rsvg.handle.Handle] or NULL if an error occurs.

Throws

[ErrorWrap]