Definition at line 87 of file ByteOrder.h.
References t.
Referenced by FTM::DimStaticData::DimStaticData().
89 const size_t targetsize = ts==0 ?
sizeof(T)*8 : std::min(ts,
sizeof(T)*8);
90 const size_t sourcesize = ss==0 ?
sizeof(S)*8 : std::min(ss,
sizeof(S)*8);
92 const S *
const ends = source + nsource;
93 const T *
const endt = target + ntarget;
98 memset(t, 0,
sizeof(T)*ntarget);
100 size_t targetpos = 0;
101 size_t sourcepos = 0;
103 while (s<ends && t<endt)
106 *t |= (*s>>sourcepos)<<targetpos;
109 const int ncopy = std::min(sourcesize-sourcepos, targetsize-targetpos);
114 if (sourcepos>=sourcesize)
116 sourcepos %= sourcesize;
120 if (targetpos>=targetsize)
122 targetpos %= targetsize;