22Copy(
const void* from,
void* to,
size_t numBytes)
29 CopyMemory(to, from, numBytes);
46 CopyMemory((
void*)to, (
const void*)from, numElements *
sizeof(T));
55Move(
const void* from,
void* to,
size_t numBytes)
62 MoveMemory(to, from, numBytes);
79 MoveMemory((
void*)to, (
const void*)from, numElements *
sizeof(T));
100Clear(
void* ptr,
size_t numBytes)
102 ZeroMemory(ptr, numBytes);
110Fill(
void* ptr,
size_t numBytes,
unsigned char value)
112 FillMemory(ptr, numBytes, value);
#define n_assert(exp)
Definition debug.h:50
Nebula compiler specific defines and configuration.
Definition arenaallocator.h:31
__forceinline void Move(const void *from, void *to, size_t numBytes)
Move a chunk of memory, can handle overlapping regions.
Definition posixmemory.h:175
void Copy(const void *from, void *to, size_t numBytes)
Copy a chunk of memory (note the argument order is different from memcpy()!!!)
Definition osxmemory.cc:213
__forceinline void CopyElements(const T *from, T *to, size_t numElements)
Copy a chunk of memory (note the argument order is different from memcpy()!!!)
Definition posixmemory.h:209
void Fill(void *ptr, size_t numBytes, unsigned char value)
Fill memory with a specific byte.
Definition osxmemory.cc:239
__forceinline void MoveElements(const T *from, T *to, size_t numElements)
Move a chunk of memory, can handle overlapping regions.
Definition posixmemory.h:192
__forceinline void CopyToGraphicsMemory(const void *from, void *to, size_t numBytes)
Copy data from a system memory buffer to graphics resource memory.
Definition posixmemory.h:227
void Clear(void *ptr, size_t numBytes)
Overwrite a chunk of memory with 0's.
Definition osxmemory.cc:229