Stream.readAllCallback()

DESCRIPTION

Read an exact amount of bytes from a stream without blocking. See Stream.readAll() for possible error codes.

DECLARATION

    public void readAllCallback(int length, NabtoCallback<byte[]> callback)

PARAMETERS

length:
The amount of bytes to read.
callback:
The callback that will be run when the bytes are ready. The callback status will have an EOF status if end of file is reached.