Handle.write

Loads the next @count bytes of the image.

Before calling this function for the first time, you may need to call rsvg_handle_set_base_uri() or rsvg_handle_set_base_gfile() to set the "base file" for resolving references to external resources. SVG elements like <literal>&lt;image&gt;</literal> which reference external resources will be resolved relative to the location you specify with those functions.

More...
class Handle
bool
write
(
char[] buf
)

Parameters

buf char[]

pointer to svg data

Return Value

Type: bool

%TRUE on success, or %FALSE on error.

Detailed Description

Deprecated: Use rsvg_handle_read_stream_sync() or the constructor functions rsvg_handle_new_from_gfile_sync() or rsvg_handle_new_from_stream_sync(). This function is deprecated because it will accumulate data from the @buf in memory until rsvg_handle_close() gets called. To avoid a big temporary buffer, use the suggested functions, which take a #GFile or a #GInputStream and do not require a temporary buffer.

Throws

GException on failure.

Meta