Imported Upstream version 6.0.0.172

Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-04-12 14:10:50 +00:00
parent 8016999e4d
commit 64ac736ec5
32155 changed files with 3981439 additions and 75368 deletions

View File

@@ -296,16 +296,18 @@ mono_gchandle_free (o_handle);
<div class="mapi-declaration mapi-section">Syntax</div>
<div class="mapi-prototype">guint32
mono_gchandle_new (MonoObject *obj, gboolean pinned)
mono_gchandle_new_internal (MonoObject *obj, gboolean pinned)
</div>
<p />
<div class="mapi-section">Parameters</div>
<table class="mapi-parameters"><tbody><tr><td><i>obj</i></td><td> managed object to get a handle for</td></tr><tr><td><i>pinned</i></td><td> whether the object should be pinned</td></tr></tbody></table> <div class="mapi-section">Return value</div>
<div> a handle that can be used to access the object from unmanaged code.
</div>
<div> a handle that can be used to access the object from
unmanaged code.</div>
<div class="mapi-section">Description</div>
<div>
<p />
This returns a handle that wraps the object, this is used to keep a
reference to a managed object from the unmanaged world and preventing the
object from being disposed.
@@ -328,8 +330,8 @@ mono_gchandle_new (MonoObject *obj, gboolean pinned)
<div class="mapi-ptr"></div>
<div class="mapi-declaration mapi-section">Syntax</div>
<div class="mapi-prototype">guint32
mono_gchandle_new_weakref (GCObject *obj, gboolean track_resurrection)
<div class="mapi-prototype">uint32_t
mono_gchandle_new_weakref (MonoObject *obj, mono_bool track_resurrection)
</div>
<p />
@@ -343,7 +345,7 @@ mono_gchandle_new_weakref (GCObject *obj, gboolean track_resurrection)
<p />
This returns a weak handle that wraps the object, this is used to
keep a reference to a managed object from the unmanaged world.
Unlike the <code>mono_gchandle_new</code> the object can be reclaimed by the
Unlike the <code>mono_gchandle_new_internal</code> the object can be reclaimed by the
garbage collector. In this case the value of the GCHandle will be
set to zero.
<p />
@@ -368,20 +370,20 @@ mono_gchandle_new_weakref (GCObject *obj, gboolean track_resurrection)
<div class="mapi-declaration mapi-section">Syntax</div>
<div class="mapi-prototype">MonoObject*
mono_gchandle_get_target (guint32 gchandle)
mono_gchandle_get_target_internal (guint32 gchandle)
</div>
<p />
<div class="mapi-section">Parameters</div>
<table class="mapi-parameters"><tbody><tr><td><i>gchandle</i></td><td> a GCHandle's handle.</td></tr></tbody></table> <div class="mapi-section">Return value</div>
<div> a pointer to the <code>MonoObject*</code> represented by the handle or
<div> A pointer to the <code>MonoObject*</code> represented by the handle or
<code>NULL</code> for a collected object if using a weakref handle.</div>
<div class="mapi-section">Description</div>
<div>
<p />
The handle was previously created by calling <code>mono_gchandle_new</code> or
<code>mono_gchandle_new_weakref</code>.
The handle was previously created by calling <code>mono_gchandle_new_internal</code> or
<code>mono_gchandle_new_weakref</code>.
<p /></div>
</div><!--mapi-description -->
</div><!--height container -->