43 _source = (
void *)((
const char *)data + start);
55 memcpy(dest, _source, length);
73 inline void TS_SetVal1(
const PN_int8 * src, PN_int8 *dst)
77 inline void TS_SetVal2(
const char * src,
char *dst)
79 *(
reinterpret_cast<PN_int16 *
>(dst)) = *(reinterpret_cast <
const PN_int16 *>(src));
82 inline void TS_SetVal4(
const char * src,
char *dst)
84 *(reinterpret_cast <PN_int32 *>(dst)) = *(reinterpret_cast <
const PN_int32 *>(src));
88 inline void TS_SetVal8(
const char * src,
char *dst)
90 *(
reinterpret_cast<PN_int64 *
>(dst)) = *(
reinterpret_cast<const PN_int64 *
>(src));
93 template<
class type>
inline type TS_GetInteger(type &val,
const char * _src)
95 val = *(reinterpret_cast <
const type *>(_src));
99 template<
class type>
inline type TS_GetIntegerIncPtr(type &val,
char *& _src)
101 val = *(reinterpret_cast <
const type *>(_src));
106 template<
class type>
inline void TS_AddIntegerIncPtr(type val,
char *& _dst)
108 *(reinterpret_cast <type *>(_dst)) = val;
112 template<
class type>
inline void TS_AddInteger(type val,
char * _dst)
114 *(reinterpret_cast <type *>(_dst)) = val;
117 #define TS_GetDirect(TT,SS) *((TT *)(SS)) 118 #define TS_GetDirectIncPtr(TT,SS) { _ptr += sizeof(TT); return *((TT *)(SS -sizeof(TT))); } const void * get_data() const
Returns the pointer to the first byte of the data, either reversed or nonreversed, as appropriate.
void store_value(void *dest, size_t length) const
Copies the data, with byte reversal if appropriate, into the indicated numeric variable, whose address and sizeof are given.
NativeNumericData(const void *data, size_t length)
This constructor accepts the address of a numeric variable, and its sizeof.