DataInputStream.readUntilAsync

The asynchronous version of DataInputStream.readUntil. It is an error to have two outstanding calls to this function.

Note that, in contrast to DataInputStream.readUntil, this function does not consume the stop character that it finds. You must read it for yourself.

When the operation is finished, callback will be called. You can then call DataInputStream.readUntilFinish to get the result of the operation.

Don't use this function in new code. Its functionality is inconsistent with DataInputStream.readUntil. Both functions will be marked as deprecated in a future release. Use DataInputStream.readUptoAsync instead.

More...
class DataInputStream
void
readUntilAsync

Parameters

stopChars string

characters to terminate the read.

ioPriority int

the [I/O priority][io-priority] of the request

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore.

callback GAsyncReadyCallback

callback to call when the request is satisfied.

userData void*

the data to pass to callback function.

Detailed Description

Deprecated: Use DataInputStream.readUptoAsync instead, which has more consistent behaviour regarding the stop character.

Meta

Since

2.20