예제 #1
0
파일: Blocks.cs 프로젝트: kangaroo/maccore
 static unsafe void CopyHelper(BlockLiteral *dest, BlockLiteral *source)
 {
     dest->global_handle = (IntPtr) GCHandle.Alloc (GCHandle.FromIntPtr (dest->local_handle).Target);
 }
예제 #2
0
파일: Blocks.cs 프로젝트: kangaroo/maccore
 static unsafe void DisposeHelper(BlockLiteral *block)
 {
     GCHandle.FromIntPtr (block->global_handle).Free ();
 }