Class DefaultAllocator
- Namespace
- Netick
- Assembly
- Netick.dll
public class DefaultAllocator : IMemoryAllocator
- Inheritance
-
DefaultAllocator
- Implements
-
- Inherited Members
-
Constructors
DefaultAllocator()
public DefaultAllocator()
Methods
Clear(void*, long)
public void Clear(void* ptr, long sizeBytes)
Parameters
ptr
void*
sizeBytes
long
Cmp(void*, void*, long)
public bool Cmp(void* ptr1, void* ptr2, long sizeBytes)
Parameters
ptr1
void*
ptr2
void*
sizeBytes
long
Returns
- bool
Copy(void*, void*, long)
public void Copy(void* dest, void* source, long sizeBytes)
Parameters
dest
void*
source
void*
sizeBytes
long
Free(void*)
public void Free(void* ptr)
Parameters
ptr
void*
Malloc(long, int)
public void* Malloc(long size, int alignment = 4)
Parameters
size
long
alignment
int
Returns
- void*