Gio.InputStream.prototype.read_bytes_finish

function read_bytes_finish(result: Gio.AsyncResult): ByteArray {
    // Gjs wrapper for g_input_stream_read_bytes_finish()
}
  

Finishes an asynchronous stream read-into-GLib.Bytes operation.

result

a Gio.AsyncResult.

Returns

the newly-allocated GLib.Bytes, or null on error