Handle.readStreamSync

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

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