7#ifndef MFRAME_27CD9666_FD9F_478C_983C_06FC70DDE127
8#define MFRAME_27CD9666_FD9F_478C_983C_06FC70DDE127
17#include "./../lang/Object.h"
79 static void*
const vNullPointer;
98 return reinterpret_cast<uint32
>(pointer);
108 return reinterpret_cast<uint32
>(pointer);
120 return reinterpret_cast<T*
>(
reinterpret_cast<int>(pointer) +
shift);
133 return reinterpret_cast<T*
>(
reinterpret_cast<int>(pointer) +
shift);
145 static inline T*
cast(
void* src) {
146 return static_cast<T*
>(src);
158 static inline T*
cast(uint32 address) {
159 return static_cast<T*
>(
reinterpret_cast<void*
>(address));
186 static void copy(
void* destination,
const void* source,
int length);
204 static void move(
void* destination,
const void* source,
int length);
217 static int compare(
const void* src1,
const void* src2,
int length);
226 static void wipe(
void* src,
int value,
int length);
234 static void wipe(
void* src,
int length);
static int getStringLength(const char *src)
static uint32 toSignedInt(const void *pointer)
轉換為整數
Definition Pointers.h:107
virtual ~Pointers(void) override
Destroy the Pointers object.
static void wipe(void *src, int length)
複製字符0x00到參數str所指向的字符串的前length個字符。
static int compare(const void *src1, const void *src2, int length)
前n個字節的內存區域src1和存儲區src2中比較。
static T * cast(uint32 address)
Definition Pointers.h:158
static void copy(void *destination, const void *source, int length)
Copies the values of num bytes from the location pointed to by source directly to the memory block po...
static void wipe(void *src, int value, int length)
複製字符 c(一個無符號字符)到參數 str 所指向的字符串的前 n 個字符。
static T * shift(T *pointer, int shift)
地址偏移
Definition Pointers.h:119
static T * cast(void *src)
Definition Pointers.h:145
static void *const & getReferenceNullPointer(void)
Get the Reference Null Pointer object.
static void move(void *destination, const void *source, int length)
將來源位置的資料複製指定的字節數(num bytes)到目標記憶體區塊中。 複製過程如同使用中間緩衝區進行,因此允許目標與來源記憶體區塊重疊。
static const T * shift(const T *pointer, int shift)
常數地址偏移
Definition Pointers.h:132
static uint32 toUnsignedInt(const void *pointer)
轉換為無符號整數
Definition Pointers.h:97
Definition Appendable.h:23