Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gOutputStreamWriteAll

gOutputStreamWriteAll


Description

Tries to write count bytes from buffer into the stream. Will block during the operation.

Usage

gOutputStreamWriteAll(object, buffer, bytes.written, cancellable = NULL, 
    .errwarn = TRUE)

Arguments

object

a GOutputStream.

buffer

the buffer containing the data to write.

bytes.written

location to store the number of bytes that was written to the stream

cancellable

optional GCancellable object, NULL to ignore.

.errwarn

Whether to issue a warning on error or fail silently

Details

This function is similar to gOutputStreamWrite, except it tries to write as many bytes as requested, only stopping on an error.

On a successful write of count bytes, TRUE is returned, and bytes.written is set to count.

If there is an error during the operation FALSE is returned and error is set to indicate the error status, bytes.written is updated to contain the number of bytes written into the stream before the error occurred.

Value

A list containing the following elements:

retval

[logical] TRUE on success, FALSE if there was an error

error

location to store the error occuring, or NULL to ignore

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.