Method

GioDataOutputStreamput_uint16

Declaration

gboolean
g_data_output_stream_put_uint16 (
  GDataOutputStream* stream,
  guint16 data,
  GCancellable* cancellable,
  GError** error
)

Description

Puts an unsigned 16-bit integer into the output stream.

Parameters

data

Type: guint16

A #guint16.

cancellable

Type: GCancellable

Optional GCancellable object, NULL to ignore.

The argument can be NULL.
The data is owned by the caller of the function.
error

Type: GError **

The return location for a GError*, or NULL.

Return value

Type: gboolean

TRUE if data was successfully added to the stream.