Math.NET Numerics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
1.8 KiB

<HTML><HEAD><TITLE>Microsoft.FSharp.NativeInterop.Ref</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
<br><dl>
<dt></dt><dd>
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.NativeInterop.html'>Microsoft.FSharp.NativeInterop</a>.Ref </h1><br>
</dd>
<dt></dt><dd>
<table>
<tr valign='top'><td>
<dt><h3>Values</h3></dt><dd>
<table width="100%%">
<tr><th width=60%>Value</th><th>Description</th></tr>
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_UnverifiableAttribute.html'>UnverifiableAttribute</a> (); <a href='../FSharp.Core/Microsoft.FSharp.Core.type_NoDynamicInvocationAttribute.html'>NoDynamicInvocationAttribute</a> ()>]
val pin : 'T <a href='../FSharp.Core/Microsoft.FSharp.Core.type__ref-1.html'>ref</a> -> (<a href='../FSharp.Core/Microsoft.FSharp.Core.type__nativeptr-1.html'>nativeptr</a>&lt;'T&gt; -> 'b) -> 'b</pre></td><td><summary>
Pin the given ref for the duration of a single call to the given function. A native pointer to
the contents of the ref is passed to the given function. Cleanup the GCHandle associated with the
pin when the function completes, even if an exception is raised.
This function should only be used if 'T is a simple blittable type
such as "int" that does not contain any further heap references.
WARNING: use of this function may lead to unverifiable or invalid code
</summary></td></tr>
</table>
</dd>
</td></tr>
<tr valign='top'><td>
<dt><h3>See Also</h3></dt><dd>
<a href="Microsoft.FSharp.NativeInterop.html">Microsoft.FSharp.NativeInterop</a> </dd>
</td></tr>
</table>
</dd>
</dl>
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
</BODY></HTML>