TRUE on success, or FALSE on error.bool write(ubyte[] buf)Loads the next count bytes of the image. You can call this function multiple times until the whole document is consumed; then you must call [rsvg.handle.Handle.close] to actually parse the document.
Before calling this function for the first time, you may need to call [rsvg.handle.Handle.setBaseUri] or [rsvg.handle.Handle.setBaseGfile] to set the "base file" for resolving references to external resources. SVG elements like <image> which reference external resources will be resolved relative to the location you specify with those functions.
buf | pointer to svg data |
TRUE on success, or FALSE on error.functions [rsvg.handle.Handle.newFromGfileSync] or [rsvg.handle.Handle.newFromStreamSync]. This function is deprecated because it will accumulate data from the buf in memory until [rsvg.handle.Handle.close] gets called. To avoid a big temporary buffer, use the suggested functions, which take a [gio.file.File] or a [gio.input_stream.InputStream] and do not require a temporary buffer.