public IntPtr AddAllocation(MemoryAllocation memoryAllocation) { this._memoryAllocations.Add(memoryAllocation); return(memoryAllocation.Allocate()); }
public IntPtr AddAllocation(IntPtr handle, int size) { MemoryAllocation memoryAllocation = new MemoryAllocation(handle, size); return(this.AddAllocation(memoryAllocation)); }