34 _source = (
void *)((
const char *)data + start);
43 memcpy(dest, _source, length);
57 inline void TS_SetVal1(
const int8_t * src, int8_t *dst)
61 inline void TS_SetVal2(
const char * src,
char *dst)
63 *(reinterpret_cast<int16_t *>(dst)) = *(reinterpret_cast <const int16_t *>(src));
66 inline void TS_SetVal4(
const char * src,
char *dst)
68 *(reinterpret_cast <int32_t *>(dst)) = *(reinterpret_cast <const int32_t *>(src));
72 inline void TS_SetVal8(
const char * src,
char *dst)
74 *(reinterpret_cast<int64_t *>(dst)) = *(reinterpret_cast<const int64_t *>(src));
77 template<
class type>
inline type TS_GetInteger(type &val,
const char * _src)
79 val = *(reinterpret_cast <const type *>(_src));
83 template<
class type>
inline type TS_GetIntegerIncPtr(type &val,
char *& _src)
85 val = *(reinterpret_cast <const type *>(_src));
90 template<
class type>
inline void TS_AddIntegerIncPtr(type val,
char *& _dst)
92 *(reinterpret_cast <type *>(_dst)) = val;
96 template<
class type>
inline void TS_AddInteger(type val,
char * _dst)
98 *(reinterpret_cast <type *>(_dst)) = val;
101 #define TS_GetDirect(TT,SS) *((TT *)(SS)) 102 #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,...
void store_value(void *dest, size_t length) const
Copies the data, with byte reversal if appropriate, into the indicated numeric variable,...
NativeNumericData(const void *data, size_t length)
This constructor accepts the address of a numeric variable, and its sizeof.