Decoding a Series of Messages using the C++ Control Class

Decoding a series of messages is virtually identical in the C++ case as it is with C:

   for ( ; ; ) {      
      
      stat = employee.Decode();
      if (stat == 0) {
         // decoding was successful
      }
      else {
         // error handling
      }
      
      decodeBuffer.init()      
   }
	 

The major difference in this case is that the init method is called at the end of the loop rather than the C runtime function rtxMemReset. The init method serves the same purpose.