readResponse

abstract fun readResponse(dataOut: Array<Byte>, bytesToRead: Int, bytesRead: IntRef, callback: CefCallback): Boolean

Read response data. If data is available immediately copy up to |bytesToRead| bytes into |dataOut|, set |bytesRead| to the number of bytes copied, and return true. To read the data at a later time set |bytesRead| to 0, return true and call CefCallback.Continue() when the data is available. To indicate response completion return false.

Return

True if more data is or will be available.

Parameters

dataOut

Write data to this buffer.

bytesToRead

Size of the buffer.

bytesRead

Number of bytes written to the buffer.

callback

Callback to execute if data will be available asynchronously.