Exemple #1
0
 internal unsafe void MarshalTo(Interop.AllocationCallbacks *pointer)
 {
     pointer->UserData              = this.UserData.ToPointer();
     pointer->PfnAllocation         = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnAllocation);
     pointer->PfnReallocation       = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnReallocation);
     pointer->PfnFree               = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnFree);
     pointer->PfnInternalAllocation = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnInternalAllocation);
     pointer->PfnInternalFree       = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnInternalFree);
 }
Exemple #2
0
 internal AllocationCallbacks(Interop.AllocationCallbacks* ptr)
 {
     m = ptr;
 }
Exemple #3
0
 public static extern Result CreateWindowSurface(Interop.Instance instance, WindowHandle window, Interop.AllocationCallbacks *pAllocator, out ulong surface);
Exemple #4
0
 public AllocationCallbacks()
 {
     m = (Interop.AllocationCallbacks*) Interop.Structure.Allocate (typeof (Interop.AllocationCallbacks));
 }