Handle.close

bool close()

This is used after calling [rsvg.handle.Handle.write] to indicate that there is no more data to consume, and to start the actual parsing of the SVG document. The only reason to call this function is if you use use [rsvg.handle.Handle.write] to feed data into the handle; if you use the other methods like [rsvg.handle.Handle.newFromFile] or [rsvg.handle.Handle.readStreamSync], then you do not need to call this function.

This will return TRUE if the loader closed successfully and the SVG data was parsed correctly. Note that handle isn't freed until [gobject.object.ObjectWrap.unref] is called.

Returns

TRUE on success, or FALSE on error.

Throws

[ErrorWrap]

Deprecated

Use [rsvg.handle.Handle.readStreamSync] or the constructor

functions [rsvg.handle.Handle.newFromGfileSync] or [rsvg.handle.Handle.newFromStreamSync]. See the deprecation notes for [rsvg.handle.Handle.write] for more information.