FACT++  1.0
template<typename S >
void ntohcpy ( const std::vector< uint16_t > &  vec,
S &  s 
)

Definition at line 62 of file ByteOrder.h.

Referenced by FTM::Header::operator=(), FTM::DynamicData::operator=(), FTM::FtuList::operator=(), and FTM::Error::operator=().

63 {
64  if (sizeof(S)!=vec.size()*2)
65  throw std::logic_error("ntohcpy: size of vector mismatch "+std::string(typeid(S).name()));
66 
67  std::transform(vec.begin(), vec.end(),
68  reinterpret_cast<uint16_t*>(&s), ntohs);
69 }

+ Here is the caller graph for this function: