Changeset 2709 in ntrip for trunk/BNC/GPSS
- Timestamp:
- Nov 18, 2010, 12:28:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/GPSS/gpssDecoder.cpp ¶
r2585 r2709 1 \ 1 2 2 /* ------------------------------------------------------------------------- 3 3 * BKG NTRIP Client … … 87 87 sizeof(epochHdr)); 88 88 89 reqLength += epochHdr.n_svs * sizeof(t_obs Internal) + sizeof(crc) + 1;89 reqLength += epochHdr.n_svs * sizeof(t_obs) + sizeof(crc) + 1; 90 90 91 91 if (_buffer.length() >= reqLength) { 92 92 93 93 int checkLen = 2 + sizeof(recordSize) + sizeof(EPOCHHEADER) + 94 epochHdr.n_svs * sizeof(t_obs Internal);94 epochHdr.n_svs * sizeof(t_obs); 95 95 memcpy(&crc, _buffer.data() + checkLen, sizeof(crc)); 96 96 int crcCal = cal_crc((unsigned char*) _buffer.data(), checkLen); … … 100 100 obsFound = true; 101 101 t_obs* obs = new t_obs(); 102 memcpy(&(obs->_o), _buffer.data() + 2 + sizeof(recordSize) + 103 sizeof(epochHdr) + is * sizeof(t_obsInternal), 104 sizeof(t_obsInternal)); 102 memcpy(obs, _buffer.data() + 2 + sizeof(recordSize) + 103 sizeof(epochHdr) + is * sizeof(t_obs), sizeof(t_obs)); 105 104 _obsList.push_back(obs); 106 105 }
Note:
See TracChangeset
for help on using the changeset viewer.