Method

GioDataInputStreamread_byte

Declaration

guchar
g_data_input_stream_read_byte (
  GDataInputStream* stream,
  GCancellable* cancellable,
  GError** error
)

Description

Reads an unsigned 8-bit/1-byte value from stream.

Parameters

cancellable GCancellable
 

Optional GCancellable object, NULL to ignore.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: guchar
 

An unsigned 8-bit/1-byte value read from the stream or 0 if an error occurred.