uint32_t UanHeaderRcCtsGlobal::Deserialize (Buffer::Iterator start) { Buffer::Iterator rbuf = start; m_rateNum = rbuf.ReadU16 (); m_retryRate = rbuf.ReadU16 (); m_timeStampTx = Seconds ( ( (double) rbuf.ReadU32 ()) / 1000.0 ); m_winTime = Seconds ( ( (double) rbuf.ReadU32 ()) / 1000.0 ); return rbuf.GetDistanceFrom (start); }
uint32_t UanHeaderRcData::Deserialize (Buffer::Iterator start) { Buffer::Iterator rbuf = start; m_frameNo = start.ReadU8 (); m_propDelay = Seconds ( ((double) start.ReadU16 ()) / 1000.0 ); return rbuf.GetDistanceFrom (start); }
uint32_t UanHeaderRcRts::Deserialize (Buffer::Iterator start) { Buffer::Iterator rbuf = start; m_frameNo = rbuf.ReadU8 (); m_retryNo = rbuf.ReadU8 (); m_noFrames = rbuf.ReadU8 (); m_length = rbuf.ReadU16 (); m_timeStamp = Seconds ( ((double) rbuf.ReadU32 ()) / 1000.0 ); // m_timeStamp = Seconds ( rbuf.ReadU16 ()/1000 ); return rbuf.GetDistanceFrom (start); }