static void Main(string[] args) { var ptr = MemoryService.Allocate(1024, false); bool result = MemoryService.Free(ptr); }