44template <
typename Type>
47 return static_cast<void*
>(ptr);
51template <
typename Type>
54 return static_cast<const void*
>(ptr);
59template <
typename Type>
67template <
typename Type>
74template <
typename Type>
77 return reinterpret_cast<Type*
>(
toByteBlock(pointer) + distance);
82template <
typename Type>
85 return reinterpret_cast<Type*
>(
toByteBlock(pointer) - distance);
89template <
typename Left,
typename Right>
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_NAMESPACE_END
void * toOpaquePtr(Type *ptr)
Makes pointer as opaque one.
ptrdiff_t byteDistance(Left *left, Right *right)
Returns distance in bytes between two pointers.
Type * advanceByBytes(Type *pointer, ptrdiff_t distance)
Advances given pointer to a given offset (distance) in bytes.
Type * advanceBackByBytes(Type *pointer, ptrdiff_t distance)
Returns pointer which is lower than given one to a given number of bytes.
UInt16 Word
Alias for Word.
UInt64 QWord
Alias for Quad Word.
UInt32 DWord
Alias for Double Word.
Byte * toByteBlock(Type *ptr)
Reinterprets pointer to one referencing to byte block.
UInt8 Byte
Alias for Byte.