Uint32 MessageOut::addCRC(){ CRC32 msgCRC; Uint32 crc; msgCRC.Init(); crc = msgCRC.GetCRC(this->myData, (this->pos)); write4(crc); return crc; }