Handle.readStreamSync

Reads @stream and writes the data from it to @handle.

Before calling this function, 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.

If @cancellable is not %NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.

class Handle
bool
readStreamSync

Parameters

stream InputStream

a #GInputStream

cancellable Cancellable

a #GCancellable, or %NULL

Return Value

Type: bool

%TRUE if reading @stream succeeded, or %FALSE otherwise with @error filled in

Throws

GException on failure.

Meta

Since

2.32