data_input_stream_read_upto


Description:


[ Version ( since = "1.2" ) ]
public Future data_input_stream_read_upto (DataInputStream stream, string stop_chars, ssize_t stop_chars_len, int io_priority)

Reads data from the stream until one of stop_chars is found.

Wraps [method@Gio.DataInputStream.read_upto_async].

Parameters:

stream

a [class@Gio.DataInputStream]

stop_chars

characters to terminate the read

stop_chars_len

length of stop_chars, or -1 if stop_chars is nul-terminated

io_priority

the IO priority of the request

Returns:

a [class@Dex.Future] that resolves to a string containing the read data, not including the stop character, or null if the end of the stream is reached.


Namespace: Dex
Package: libdex-1