Example #1
0
 static unsafe void CopyHelper(BlockLiteral *dest, BlockLiteral *source)
 {
     dest->global_handle = (IntPtr) GCHandle.Alloc (GCHandle.FromIntPtr (dest->local_handle).Target);
 }
Example #2
0
 static unsafe void DisposeHelper(BlockLiteral *block)
 {
     GCHandle.FromIntPtr (block->global_handle).Free ();
 }