LAPTOP-SNT8I5JK\Boounion
2025-05-20 91a2974fc7bce6e8bbd903992efae13709b0d186
SourceCode/Bond/Servo/ToolUnits.cpp
@@ -316,4 +316,17 @@
   strOut = ss.str();
   return strOut;
}
void CToolUnits::convertString(const char* pszBuffer, int size, std::string& strOut)
{
   strOut.clear();
   int nLength = 0;
   for (int i = 0; i < size; i++) {
      if (pszBuffer[i] == '\0') break;
      nLength++;
   }
   if (nLength > 0) {
      strOut = std::string(pszBuffer, nLength);
   }
}