Class sh::scripting::api::ApiReadDataDevice

class sh::scripting::api::ApiReadDataDevice : public sh::tools::ReadDataDevice

Public Functions

ApiReadDataDevice()
QByteArray getdata()

This method returns the next available chunk of data. It may return empty arrays whenever temporarily no data is available. Returning a null array (with QByteArray::isNull()==true) marks the end of the stream. .

void _ended()

Public Members

std::function<QByteArray()> _getdata

Private Members

bool isended