read_usec


Description:

[ Version ( since = "1.18" ) ]
public Result read_usec (uint8[] data, int64 timeout)

Attempt to read data.length bytes into data from the connected this, blocking up to the specified timeout.

timeout can be 0, in which case this function might block forever.

This function can be cancelled with flush.

Parameters:

this

a Connection

data

the data to read

timeout

a timeout value in microseconds

size

the size of data

Returns:

OK on success.