Gio.DataInputStream.prototype.read_byte

function read_byte(cancellable: Gio.Cancellable): Number(guint8) {
    // Gjs wrapper for g_data_input_stream_read_byte()
}
  

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

cancellable

optional Gio.Cancellable object, null to ignore.

Returns

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