driver/src/sick_scan_common.cpp
unsigned long SickScanCommon::convertBigEndianCharArrayToUnsignedLong(const unsigned char *vecArr)
  {
    unsigned long val = 0;
    for (int i = 0; i < 4; i++)
    {
      val = val << 8;
      val |= vecArr[i];
    }
    return (val);
  }
/*!
  \brief Convert little endian to big endian (should be replaced by swap-routine)
  \param *vecArr Pointer to 4 byte block
  \return swapped 4-byte-value as long
  */
\brief Convert little endian to big endian (should be replaced by swap-routine)
\param *vecArr Pointer to 4 byte block
\return swapped 4-byte-value as long
\ brief Convert little endian to big endian ( should be replaced by swap - routine ) \ param * vecArr Pointer to 4 byte block \ return swapped 4 - byte - value as long
unsigned long SickScanCommon::convertBigEndianCharArrayToUnsignedLong(const unsigned char *vecArr)
  {
    unsigned long val = 0;
    for (int i = 0; i < 4; i++)
    {
      val = val << 8;
      val |= vecArr[i];
    }
    return (val);
  }
unsigned long SickScanCommon :: convertBigEndianCharArrayToUnsignedLong ( const unsigned char * vecArr ) { unsigned long val = 0 ; for ( int i = 0 ; i < 4 ; i ++ ) { val = val << 8 ; val |= vecArr [ i ] ; } return ( val ) ; }
\brief Convert little endian to big endian (should be replaced by swap-routine)
\param *vecArr Pointer to 4 byte block
\return swapped 4-byte-value as long
\ brief Convert little endian to big endian ( should be replaced by swap - routine ) \ param * vecArr Pointer to 4 byte block \ return swapped 4 - byte - value as long