Function

Dex-1Dexdata_input_stream_read_uptoSince 1.2

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

    Wraps Gio.DataInputStream.read_upto_async.

    Parameters

    • stream: Gio.DataInputStream
    • stop_chars: string

      characters to terminate the read

    • stop_chars_len: number | bigint

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

    • io_priority: number

      the [IO priority][iface@Gio.AsyncResult#io-priority] of the request

    Returns Dex.Future

    a 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.

    1.2