Esempio n. 1
0
        public IntPtr AddAllocation(MemoryAllocation memoryAllocation)
        {
            this._memoryAllocations.Add(memoryAllocation);

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

            return(this.AddAllocation(memoryAllocation));
        }