mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
20 lines
630 B
C#
20 lines
630 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Cosmos.Core;
|
|
using Cosmos.IL2CPU.Plugs;
|
|
|
|
namespace Cosmos.Kernel.Plugs {
|
|
[Plug(TargetName = "Cosmos.IL2CPU.RuntimeEngine, Cosmos.IL2CPU")]
|
|
public static class HeapImpl {
|
|
//[PlugMethod(Signature = "System_UInt32__Indy_IL2CPU_RuntimeEngine_Heap_AllocNewObject_System_UInt32_")]
|
|
public static uint Heap_AllocNewObject(uint aSize) {
|
|
return Heap.MemAlloc(aSize);
|
|
}
|
|
|
|
//[PlugMethod(Signature = "System_UInt32__Indy_IL2CPU_RuntimeEngine_Heap_Free_System_UInt32_")]
|
|
public static void Heap_Free(uint aObject) {
|
|
//Heap.MemFree(aObject);
|
|
}
|
|
}
|
|
}
|