ATLAS Offline Software
Functions
AthenaKernel/src/crc_combine.h File Reference
#include <string>
#include <boost/crc.hpp>
Include dependency graph for AthenaKernel/src/crc_combine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t crc_combine (uint32_t seed, uint32_t v)
 using crc32 for architecture independence in combining the seeds More...
 
uint32_t crc_combine (uint32_t seed, const std::string &v)
 using crc32 for architecture independence in combining the seeds More...
 

Function Documentation

◆ crc_combine() [1/2]

uint32_t crc_combine ( uint32_t  seed,
const std::string &  v 
)
inline

using crc32 for architecture independence in combining the seeds

Definition at line 18 of file AthenaKernel/src/crc_combine.h.

18  {
19  boost::crc_32_type crf;
20  crf.process_bytes(&seed,sizeof(uint32_t));
21  crf.process_bytes(v.c_str(),v.size());
22  return crf.checksum();
23 }

◆ crc_combine() [2/2]

uint32_t crc_combine ( uint32_t  seed,
uint32_t  v 
)
inline

using crc32 for architecture independence in combining the seeds

Definition at line 11 of file AthenaKernel/src/crc_combine.h.

11  {
12  boost::crc_32_type crf;
13  crf.process_bytes(&seed,sizeof(uint32_t));
14  crf.process_bytes(&v,sizeof(uint32_t));
15  return crf.checksum();
16 }
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
python.PyAthena.v
v
Definition: PyAthena.py:157