Example #1
0
 public JniArgumentValue(JniReferenceSafeHandle value)
 {
     this = new JniArgumentValue();
     l    = value == null ? IntPtr.Zero : value.DangerousGetHandle();
 }
Example #2
0
 public JniObjectReference(JniReferenceSafeHandle handle, JniObjectReferenceType type = JniObjectReferenceType.Invalid)
 {
     SafeHandle = handle;
     Handle     = IntPtr.Zero;
     Type       = type;
 }
Example #3
0
 internal JniObjectReference(JniReferenceSafeHandle handle, JniObjectReferenceType type = JniObjectReferenceType.Invalid)
 {
     this.gcHandle = GCHandle.Alloc(handle, GCHandleType.Normal);
     referenceInfo = (uint)type;
 }