LAPTOP-SNT8I5JK\Boounion
2025-05-20 ebc5dba7e2b0dccb9583faefa21ffd3454792788
SourceCode/Bond/Servo/CJobDataA.cpp
@@ -37,11 +37,11 @@
      memcpy(&pszBuffer[index], &m_nPortNo, sizeof(short));
      index += sizeof(short);
      int strLen = min(20, m_strCarrierId.size());
      int strLen = min(20, (int)m_strCarrierId.size());
      memcpy(&pszBuffer[index], m_strCarrierId.c_str(), strLen);
      index += 20;
      strLen = min(20, m_pruductId.size());
      strLen = min(20, (int)m_pruductId.size());
      memcpy(&pszBuffer[index], m_pruductId.c_str(), strLen);
      index += 20;
@@ -56,7 +56,7 @@
      for (int i = 0; i < min(25, m_glassIds.size()); i++) {
         std::string& strGlassId = m_glassIds.at(i);
         strLen = min(20, strGlassId.size());
         strLen = min(20, (int)strGlassId.size());
         memcpy(&pszBuffer[index], strGlassId.c_str(), strLen);
         index += 20;
      }
@@ -64,7 +64,7 @@
      return 320 * 2;
   }
   int CJobDataA::unserialize(char* pszBuffer, int nBufferSize)
   int CJobDataA::unserialize(const char* pszBuffer, int nBufferSize)
   {
      if (nBufferSize < 640) return -1;