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) |
|
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.
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.
ptrdiff_t byteDistance |
( |
Left * |
left, |
|
|
Right * |
right |
|
) |
| |
|
inline |
Returns distance in bytes between two pointers.
Definition at line 136 of file Memory.h.
Byte* toByteBlock |
( |
Type * |
ptr | ) |
|
|
inline |
Reinterprets pointer to one referencing to byte block.
Definition at line 65 of file Memory.h.
const Byte* toByteBlock |
( |
const Type * |
ptr | ) |
|
|
inline |
Reinterprets pointer to one referencing to byte block.
Definition at line 82 of file Memory.h.
void* toOpaquePtr |
( |
Type * |
ptr | ) |
|
|
inline |
Makes pointer as opaque one.
Definition at line 39 of file Memory.h.
const void* toOpaquePtr |
( |
const Type * |
ptr | ) |
|
|
inline |
Makes pointer as opaque one.
Definition at line 51 of file Memory.h.
Alias for Byte.
Definition at line 30 of file Memory.h.