// the decoder may have decoded 3 different parts : the header, a buffer or the end of stream.
if(m_restSignalDecoder.isHeaderReceived()){}
if(m_restSignalDecoder.isBufferReceived()){
// Buffer received. For example the signal values
// Access to the buffer can be done thanks to :
CMatrix*matrix=m_restSignalDecoder.getOutputMatrix();// the StreamedMatrix of samples.
OV_ERROR_UNLESS_KRF(matrix->getSize()==1,"Rest input (input 0): Excpected single sample chunks. This chunk received is "<<matrix->getSize()<<" long",Kernel::ErrorType::BadProcessing);
CMatrix*matrix=m_trialSignalDecoder.getOutputMatrix();// the StreamedMatrix of samples.
OV_ERROR_UNLESS_KRF(matrix->getSize()==1,"Trial input (input 1): Excpected single sample chunks. This chunk received is "<<matrix->getSize()<<" long",Kernel::ErrorType::BadProcessing);