Go to the source code of this file.
|
template<typename Type> |
void * | toOpaquePtr (Type *ptr) |
template<typename Type> |
const void * | toOpaquePtr (const Type *ptr) |
template<typename Type> |
Byte * | toByteBlock (Type *ptr) |
template<typename Type> |
const Byte * | toByteBlock (const Type *ptr) |
template<typename Type> |
Type * | advanceByBytes (Type *pointer, ptrdiff_t distance) |
template<typename Type> |
Type * | advanceBackByBytes (Type *pointer, ptrdiff_t distance) |
template<typename Left, typename Right> |
ptrdiff_t | byteDistance (Left *left, Right *right) |
◆ advanceBackByBytes()
template<typename Type>
Type * advanceBackByBytes |
( |
Type * | pointer, |
|
|
ptrdiff_t | distance ) |
|
inline |
Returns pointer which is lower than given one to a given number of bytes.
Definition at line 117 of file Memory.h.
◆ advanceByBytes()
template<typename Type>
Type * advanceByBytes |
( |
Type * | pointer, |
|
|
ptrdiff_t | distance ) |
|
inline |
Advances given pointer to a given offset (distance) in bytes.
Definition at line 98 of file Memory.h.
◆ byteDistance()
template<typename Left, typename Right>
ptrdiff_t byteDistance |
( |
Left * | left, |
|
|
Right * | right ) |
|
inline |
Returns distance in bytes between two pointers.
Definition at line 136 of file Memory.h.
◆ toByteBlock() [1/2]
template<typename Type>
const Byte * toByteBlock |
( |
const Type * | ptr | ) |
|
|
inline |
Reinterprets pointer to one referencing to byte block.
Definition at line 82 of file Memory.h.
◆ toByteBlock() [2/2]
template<typename Type>
Byte * toByteBlock |
( |
Type * | ptr | ) |
|
|
inline |
Reinterprets pointer to one referencing to byte block.
Definition at line 65 of file Memory.h.
◆ toOpaquePtr() [1/2]
template<typename Type>
const void * toOpaquePtr |
( |
const Type * | ptr | ) |
|
|
inline |
Makes pointer as opaque one.
Definition at line 51 of file Memory.h.
◆ toOpaquePtr() [2/2]
template<typename Type>
void * toOpaquePtr |
( |
Type * | ptr | ) |
|
|
inline |
Makes pointer as opaque one.
Definition at line 39 of file Memory.h.
◆ Byte
Alias for Byte.
Definition at line 30 of file Memory.h.