Class Heap
Heap class.
Inheritance
System.Object
Heap
Namespace: Cosmos.Core.Memory
Assembly: Cosmos.Core.dll
Syntax
public static class Heap : object
Methods
| Improve this Doc View SourceAlloc(System.UInt32)
Alloc memory block, of a given size.
Declaration
public static byte *Alloc(System.UInt32 aSize)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | aSize | A size of block to alloc, in bytes. |
Returns
Type | Description |
---|---|
System.Byte* | Byte pointer to the start of the block. |
Free(Void*)
Free a heap item.
Declaration
public static void Free(void *aPtr)
Parameters
Type | Name | Description |
---|---|---|
System.Void* | aPtr | A pointer to the heap item to be freed. |
Init()
Init heap.
Declaration
public static void Init()