Learn R Programming

RGtk2 (version 2.20.31)

gDataInputStreamReadInt16: gDataInputStreamReadInt16

Description

Reads a 16-bit/2-byte value from stream.

Usage

gDataInputStreamReadInt16(object, cancellable = NULL, .errwarn = TRUE)

Arguments

object
cancellable
optional GCancellable object, NULL to ignore.
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[integer] a signed 16-bit/2-byte value read from stream or 0 if an error occurred.
error
GError for error reporting.

Details

In order to get the correct byte order for this read operation, see gDataStreamGetByteOrder() and gDataStreamSetByteOrder().