input_stream_read


Description:


public Future input_stream_read (InputStream self, out unowned uint8[] buffer, int io_priority)

Reads buffer.length bytes from an input stream into a pre-allocated buffer.

The buffer must stay valid for the lifetime of this future.

Parameters:

self

a [class@Gio.InputStream]

io_priority

the IO priority of the request

count

size in bytes to read from the stream into the buffer

Returns:

a [class@Dex.Future] that reads counts bytes into buffer


Namespace: Dex
Package: libdex-1