You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@ -48,6 +48,16 @@
|
||||
line-height: 0px;
|
||||
}
|
||||
|
||||
.mapi-codeblock {
|
||||
display: block;
|
||||
padding: 5pt 5pt;
|
||||
margin: 10pt;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
border: 1px solid rgba(233,233,233,1);
|
||||
background-color: rgba(249,249,249,1);
|
||||
}
|
||||
|
||||
.mapi-entry code {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
@ -228,7 +238,17 @@ mono_unicode_from_external (const gchar *in, gsize *bytes)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>in</i></td><td> pointers to the buffer.</td></tr><tr><td><i>bytes</i></td><td> number of bytes in the string.</td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> Tries to turn a <code>NULL</code>-terminated string into UTF-16. <p /> First, see if it's valid UTF-8, in which case just turn it directly into UTF-16. Next, run through the colon-separated encodings in <code>MONO_EXTERNAL_ENCODINGS</code> and do an <code>iconv</code> conversion on each, returning the first successful conversion to UTF-16. If no conversion succeeds, return <code>NULL</code>. <p /> Callers must free the returned string if not <code>NULL</code>. <i>bytes</i> holds the number of bytes in the returned string, not including the terminator.</div>
|
||||
<div>
|
||||
Tries to turn a <code>NULL</code>-terminated string into UTF-16.
|
||||
<p />
|
||||
First, see if it's valid UTF-8, in which case just turn it directly
|
||||
into UTF-16. Next, run through the colon-separated encodings in
|
||||
<code>MONO_EXTERNAL_ENCODINGS</code> and do an <code>iconv</code> conversion on each,
|
||||
returning the first successful conversion to UTF-16. If no
|
||||
conversion succeeds, return <code>NULL</code>.
|
||||
<p />
|
||||
Callers must free the returned string if not <code>NULL</code>. <i>bytes</i> holds the number
|
||||
of bytes in the returned string, not including the terminator.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -248,7 +268,11 @@ mono_unicode_from_external (const gchar *in, gsize *bytes)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>uni</i></td><td> a UTF-16 string to convert to an external representation.</td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> Turns <code>NULL</code>-terminated UTF-16 into either UTF-8, or the first working item in <code>MONO_EXTERNAL_ENCODINGS</code> if set. If no conversions work, then UTF-8 is returned. Callers must free the returned string.</div>
|
||||
<div>
|
||||
Turns <code>NULL</code>-terminated UTF-16 into either UTF-8, or the first
|
||||
working item in <code>MONO_EXTERNAL_ENCODINGS</code> if set. If no conversions
|
||||
work, then UTF-8 is returned.
|
||||
Callers must free the returned string.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -268,7 +292,20 @@ mono_unicode_from_external (const gchar *in, gsize *bytes)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>in</i></td><td> pointer to the string buffer.</td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> Tries to turn a <code>NULL</code>-terminated string into UTF8. <p /> First, see if it's valid UTF-8, in which case there's nothing more to be done. Next, run through the colon-separated encodings in <code>MONO_EXTERNAL_ENCODINGS</code> and do an <code>iconv</code> conversion on each, returning the first successful conversion to UTF-8. If no conversion succeeds, return <code>NULL</code>. <p /> Callers must free the returned string if not <code>NULL</code>. <p /> This function is identical to <code>mono_unicode_from_external</code>, apart from returning UTF-8 not UTF-16; it's handy in a few places to work in UTF-8.</div>
|
||||
<div>
|
||||
Tries to turn a <code>NULL</code>-terminated string into UTF8.
|
||||
<p />
|
||||
First, see if it's valid UTF-8, in which case there's nothing more
|
||||
to be done. Next, run through the colon-separated encodings in
|
||||
<code>MONO_EXTERNAL_ENCODINGS</code> and do an <code>iconv</code> conversion on each,
|
||||
returning the first successful conversion to UTF-8. If no
|
||||
conversion succeeds, return <code>NULL</code>.
|
||||
<p />
|
||||
Callers must free the returned string if not <code>NULL</code>.
|
||||
<p />
|
||||
This function is identical to <code>mono_unicode_from_external</code>, apart
|
||||
from returning UTF-8 not UTF-16; it's handy in a few places to work
|
||||
in UTF-8.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
|
||||
@ -309,7 +346,8 @@ mono_marshal_asany (MonoObject *o, MonoMarshalNative string_encoding, int param_
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> This is a JIT icall, it sets the pending exception and returns <code>NULL</code> on error.</div>
|
||||
<div>
|
||||
This is a JIT icall, it sets the pending exception and returns <code>NULL</code> on error.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -347,7 +385,8 @@ mono_marshal_free_asany (MonoObject *o, gpointer ptr, MonoMarshalNative string_e
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> This is a JIT icall, it sets the pending exception</div>
|
||||
<div>
|
||||
This is a JIT icall, it sets the pending exception</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -436,7 +475,8 @@ mono_marshal_get_delegate_invoke (MonoMethod *method, MonoDelegate *del)
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> The returned method invokes all methods in a multicast delegate.</div>
|
||||
<div>
|
||||
The returned method invokes all methods in a multicast delegate.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -456,7 +496,9 @@ mono_marshal_get_icall_wrapper (MonoMethodSignature *sig, const char *name, gcon
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> Generates IL code for the icall wrapper. The generated method calls the unmanaged code in <i>func</i>.</div>
|
||||
<div>
|
||||
Generates IL code for the icall wrapper. The generated method
|
||||
calls the unmanaged code in <i>func</i>.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -492,7 +534,12 @@ mono_marshal_get_ldfld_wrapper (MonoType *type)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>type</i></td><td> the type of the field</td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> <p /> This method generates a function which can be use to load a field with type <i>type</i> from an object. The generated function has the following signature: <p /> <code><i>type</i> ldfld_wrapper (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, int offset)</code></div>
|
||||
<div>
|
||||
<p />
|
||||
This method generates a function which can be use to load a field with type
|
||||
<i>type</i> from an object. The generated function has the following signature:
|
||||
<p />
|
||||
<code><i>type</i> ldfld_wrapper (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, int offset)</code></div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -512,7 +559,9 @@ mono_marshal_get_managed_wrapper (MonoMethod *method, MonoClass *delegate_klass,
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> Generates IL code to call managed methods from unmanaged code If <i>target_handle</i> is <code>0</code>, the wrapper info will be a <code>WrapperInfo</code> structure.</div>
|
||||
<div>
|
||||
Generates IL code to call managed methods from unmanaged code
|
||||
If <i>target_handle</i> is <code>0</code>, the wrapper info will be a <code>WrapperInfo</code> structure.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -533,7 +582,10 @@ mono_marshal_get_native_wrapper (MonoMethod *method, gboolean check_exceptions,
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>method</i></td><td> The <code>MonoMethod</code> to wrap.</td></tr><tr><td><i>check_exceptions</i></td><td> Whenever to check for pending exceptions</td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> <p /> Generates IL code for the pinvoke wrapper. The generated method calls the unmanaged code in <code>piinfo->addr</code>.</div>
|
||||
<div>
|
||||
<p />
|
||||
Generates IL code for the pinvoke wrapper. The generated method
|
||||
calls the unmanaged code in <code>piinfo->addr</code>.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -572,7 +624,8 @@ mono_marshal_get_ptr_to_struct (MonoClass *klass)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>klass</i></td><td> <code>MonoClass</code></td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> Generates IL code for <code>PtrToStructure (IntPtr src, object structure)</code></div>
|
||||
<div>
|
||||
Generates IL code for <code>PtrToStructure (IntPtr src, object structure)</code></div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -647,7 +700,15 @@ mono_marshal_get_runtime_invoke_full (MonoMethod *method, gboolean virtual_, gbo
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>function</i></td><td></td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> <p /> <code>MonoObject *runtime_invoke (MonoObject *this_obj, void **params, MonoObject **exc, void* method)</code> <p /> We also catch exceptions if <i>exc</i> is not <code>NULL</code>. If <i>virtual</i> is <code>TRUE</code>, then <i>method</i> is invoked virtually on <i>this</i>. This is useful since it means that the compiled code for <i>method</i> does not have to be looked up before calling the runtime invoke wrapper. In this case, the wrapper ignores its <i>method</i> argument.</div>
|
||||
<div>
|
||||
<p />
|
||||
<code>MonoObject *runtime_invoke (MonoObject *this_obj, void **params, MonoObject **exc, void* method)</code>
|
||||
<p />
|
||||
We also catch exceptions if <i>exc</i> is not <code>NULL</code>.
|
||||
If <i>virtual</i> is <code>TRUE</code>, then <i>method</i> is invoked virtually on <i>this</i>. This is useful since
|
||||
it means that the compiled code for <i>method</i> does not have to be looked up
|
||||
before calling the runtime invoke wrapper. In this case, the wrapper ignores
|
||||
its <i>method</i> argument.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -686,7 +747,12 @@ mono_marshal_get_stfld_wrapper (MonoType *type)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>type</i></td><td> the type of the field</td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> <p /> This method generates a function which can be use to store a field with type <i>type</i>. The generated function has the following signature: <p /> <code>void stfld_wrapper (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, int offset, <i>type</i> val)</code></div>
|
||||
<div>
|
||||
<p />
|
||||
This method generates a function which can be use to store a field with type
|
||||
<i>type</i>. The generated function has the following signature:
|
||||
<p />
|
||||
<code>void stfld_wrapper (MonoObject *this_obj, MonoClass *klass, MonoClassField *field, int offset, <i>type</i> val)</code></div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -707,7 +773,9 @@ mono_marshal_get_struct_to_ptr (MonoClass *klass)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>klass</i></td><td> <code>MonoClass</code></td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> <p /> Generates IL code for <code>StructureToPtr (object structure, IntPtr ptr, bool fDeleteOld)</code></div>
|
||||
<div>
|
||||
<p />
|
||||
Generates IL code for <code>StructureToPtr (object structure, IntPtr ptr, bool fDeleteOld)</code></div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -728,7 +796,8 @@ mono_marshal_get_synchronized_wrapper (MonoMethod *method)
|
||||
<p />
|
||||
<div class="mapi-section">Parameters</div>
|
||||
<table class="mapi-parameters"><tbody><tr><td><i>wrapper</i></td><td> the generated method</td></tr></tbody></table> <div class="mapi-section">Description</div>
|
||||
<div> calls <i>method</i> while locking <code>this</code> or the parent type.</div>
|
||||
<div>
|
||||
calls <i>method</i> while locking <code>this</code> or the parent type.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -748,7 +817,8 @@ mono_marshal_get_unbox_wrapper (MonoMethod *method)
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> The returned method calls <i>method</i> unboxing the <code>this</code> argument.</div>
|
||||
<div>
|
||||
The returned method calls <i>method</i> unboxing the <code>this</code> argument.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -768,7 +838,8 @@ mono_marshal_get_xappdomain_invoke (MonoMethod *method)
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> Generates a fast remoting wrapper for cross app domain calls.</div>
|
||||
<div>
|
||||
Generates a fast remoting wrapper for cross app domain calls.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -788,7 +859,13 @@ mono_marshal_load_type_info (MonoClass* klass)
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> <p /> Initialize <code>klass::marshal_info</code> using information from metadata. This function can recursively call itself, and the caller is responsible to avoid that by calling <code>mono_marshal_is_loading_type_info</code> beforehand. <p /> LOCKING: Acquires the loader lock.</div>
|
||||
<div>
|
||||
<p />
|
||||
Initialize <code>klass::marshal_info</code> using information from metadata. This function can
|
||||
recursively call itself, and the caller is responsible to avoid that by calling
|
||||
<code>mono_marshal_is_loading_type_info</code> beforehand.
|
||||
<p />
|
||||
LOCKING: Acquires the loader lock.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -826,7 +903,10 @@ mono_marshal_set_last_error (void)
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> <p /> This function is invoked to set the last error value from a P/Invoke call which has <code>SetLastError</code> set.</div>
|
||||
<div>
|
||||
<p />
|
||||
This function is invoked to set the last error value from a P/Invoke call
|
||||
which has <code>SetLastError</code> set.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
@ -872,7 +952,9 @@ mono_loader_lock (void)
|
||||
</div>
|
||||
<p />
|
||||
<div class="mapi-section">Description</div>
|
||||
<div> <p /> See <code>docs/thread-safety.txt</code> for the locking strategy.</div>
|
||||
<div>
|
||||
<p />
|
||||
See <code>docs/thread-safety.txt</code> for the locking strategy.</div>
|
||||
</div><!--mapi-description -->
|
||||
</div><!--height container -->
|
||||
</div> <!-- class=mapi -->
|
||||
|
Reference in New Issue
Block a user