Example #1
0
        public IntPtr AddAllocation(MemoryAllocation memoryAllocation)
        {
            this._memoryAllocations.Add(memoryAllocation);

            return(memoryAllocation.Allocate());
        }
Example #2
0
        public IntPtr AddAllocation(IntPtr handle, int size)
        {
            MemoryAllocation memoryAllocation = new MemoryAllocation(handle, size);

            return(this.AddAllocation(memoryAllocation));
        }