Math.Gmp.Native/docs/html/d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm
2017-11-04 11:02:37 -04:00

43 lines
16 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html><head><meta http-equiv="X-UA-Compatible" content="IE=edge" /><link rel="shortcut icon" href="../icons/favicon.ico" /><link rel="stylesheet" type="text/css" href="../styles/branding.css" /><link rel="stylesheet" type="text/css" href="../styles/branding-en-US.css" /><script type="text/javascript" src="../scripts/branding.js"> </script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Math.Gmp.Native Namespace</title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="Math.Gmp.Native namespace" /><meta name="Microsoft.Help.F1" content="Math.Gmp.Native" /><meta name="Microsoft.Help.Id" content="N:Math.Gmp.Native" /><meta name="Description" content="summaryN:Math.Gmp.Native" /><meta name="Microsoft.Help.ContentType" content="Reference" /><meta name="BrandingAware" content="true" /><meta name="container" content="Math.Gmp.Native" /><meta name="file" content="d9c51b9f-0c54-770b-28ea-6eebd8fef368" /><meta name="guid" content="d9c51b9f-0c54-770b-28ea-6eebd8fef368" /><link rel="stylesheet" type="text/css" href="../styles/branding-Website.css" /><script type="text/javascript" src="../scripts/jquery-1.11.0.min.js"></script><script type="text/javascript" src="../scripts/branding-Website.js"></script><script type="text/javascript" src="../scripts/clipboard.min.js"></script></head><body onload="OnLoad('cs')"><input type="hidden" id="userDataCache" class="userDataStyle" /><div class="pageHeader" id="PageHeader">GMP Native Interface for .NET<form id="SearchForm" method="get" action="#" onsubmit="javascript:TransferToSearchPage(); return false;"><input id="SearchTextBox" type="text" maxlength="200" /><button id="SearchButton" type="submit"></button></form></div><div class="pageBody"><div class="leftNav" id="leftNav"><div id="tocNav"><div class="toclevel0" data-toclevel="0"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="846f5c8a-6cba-433e-9f18-cde2ff5695cd.htm" title="GMP Native Interface for .NET" tocid="roottoc">GMP Native Interface for .NET</a></div><div class="toclevel1 current" data-toclevel="1" data-childrenloaded="true"><a class="tocExpanded" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm" title="Math.Gmp.Native" tocid="d9c51b9f-0c54-770b-28ea-6eebd8fef368">Math.Gmp.Native</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="dfe3609d-cc50-e357-4254-e3a8e2847f07.htm" title="allocate_function Delegate" tocid="dfe3609d-cc50-e357-4254-e3a8e2847f07">allocate_function Delegate</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="06249483-9daf-95f9-32c7-30195550bbcc.htm" title="char_ptr Structure" tocid="06249483-9daf-95f9-32c7-30195550bbcc">char_ptr Structure</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="1bcc07bd-8fee-1107-844c-a5ff10e7660c.htm" title="FILE Structure" tocid="1bcc07bd-8fee-1107-844c-a5ff10e7660c">FILE Structure</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="2c9876e2-a0f5-14c6-5069-1a9d50b89185.htm" title="free_function Delegate" tocid="2c9876e2-a0f5-14c6-5069-1a9d50b89185">free_function Delegate</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm" title="gmp_lib Class" tocid="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f">gmp_lib Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="f7e5846d-548d-3bf3-74ac-219fde42a041.htm" title="gmp_randstate_t Class" tocid="f7e5846d-548d-3bf3-74ac-219fde42a041">gmp_randstate_t Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="8f3c572b-8133-bccc-b838-9d22e3467898.htm" title="mp_base Class" tocid="8f3c572b-8133-bccc-b838-9d22e3467898">mp_base Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="1b2b1d64-20c1-7a64-0278-d9ff58ee9cc3.htm" title="mp_bitcnt_t Structure" tocid="1b2b1d64-20c1-7a64-0278-d9ff58ee9cc3">mp_bitcnt_t Structure</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="e6a17880-791f-37d4-4942-cf26ce7d4cbf.htm" title="mp_exp_t Structure" tocid="e6a17880-791f-37d4-4942-cf26ce7d4cbf">mp_exp_t Structure</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="bf1f694d-f9b2-6413-12e5-ebae603d5b49.htm" title="mp_limb_t Structure" tocid="bf1f694d-f9b2-6413-12e5-ebae603d5b49">mp_limb_t Structure</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="4609ac5e-5cf9-cd20-2fa9-8040101c165c.htm" title="mp_ptr Class" tocid="4609ac5e-5cf9-cd20-2fa9-8040101c165c">mp_ptr Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="4b58a584-7a0e-b600-18fa-ebd493861eb3.htm" title="mp_size_t Structure" tocid="4b58a584-7a0e-b600-18fa-ebd493861eb3">mp_size_t Structure</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="37c88d6c-8d02-2330-ad77-f20fb73d1677.htm" title="mpf_t Class" tocid="37c88d6c-8d02-2330-ad77-f20fb73d1677">mpf_t Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="635f1879-5f85-881e-cca8-3222baf5045a.htm" title="mpq_t Class" tocid="635f1879-5f85-881e-cca8-3222baf5045a">mpq_t Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="8beda7fb-bbc4-b56f-fd1f-1459377ecb3b.htm" title="mpz_t Class" tocid="8beda7fb-bbc4-b56f-fd1f-1459377ecb3b">mpz_t Class</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="542faa00-d28a-72a2-2dd8-6c6021e683ce.htm" title="ptr(T) Class" tocid="542faa00-d28a-72a2-2dd8-6c6021e683ce">ptr(T) Class</a></div><div class="toclevel2" data-toclevel="2"><a data-tochassubtree="false" href="aa9d21b4-a929-d550-5a65-f9cbcfa7f638.htm" title="reallocate_function Delegate" tocid="aa9d21b4-a929-d550-5a65-f9cbcfa7f638">reallocate_function Delegate</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="d9761bfb-1882-59d2-e89b-c6460141f9a6.htm" title="size_t Structure" tocid="d9761bfb-1882-59d2-e89b-c6460141f9a6">size_t Structure</a></div><div class="toclevel2" data-toclevel="2"><a class="tocCollapsed" onclick="javascript: Toggle(this);" href="#!" /><a data-tochassubtree="true" href="e200d734-044d-4cc7-acc7-2333d7cf3c9a.htm" title="void_ptr Structure" tocid="e200d734-044d-4cc7-acc7-2333d7cf3c9a">void_ptr Structure</a></div></div><div id="tocResizableEW" onmousedown="OnMouseDown(event);"></div><div id="TocResize" class="tocResize"><img id="ResizeImageIncrease" src="../icons/TocOpen.gif" onclick="OnIncreaseToc()" alt="Click or drag to resize" title="Click or drag to resize" /><img id="ResizeImageReset" src="../icons/TocClose.gif" style="display:none" onclick="OnResetToc()" alt="Click or drag to resize" title="Click or drag to resize" /></div></div><div class="topicContent" id="TopicContent"><table class="titleTable"><tr><td class="titleColumn">Math.Gmp.Native Namespace</td></tr></table><span class="introStyle"></span> <div class="summary"><p style="color: #dc143c; font-size: 8.5pt; font-weight: bold;">[Missing &lt;summary&gt; documentation for "N:Math.Gmp.Native"]</p></div><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID0RB')" onkeypress="SectionExpandCollapse_CheckKey('ID0RB', event)" tabindex="0"><img id="ID0RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Classes</span></div><div id="ID0RBSection" class="collapsibleSection"><table class="members" id="classList"><tr><th class="iconColumn">
 
</th><th>Class</th><th>Description</th></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm">gmp_lib</a></td><td><div class="summary" /></td></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="f7e5846d-548d-3bf3-74ac-219fde42a041.htm">gmp_randstate_t</a></td><td><div class="summary">
Represents the state of a random number generator.
</div></td></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="8f3c572b-8133-bccc-b838-9d22e3467898.htm">mp_base</a></td><td><div class="summary">
Provides common functionality to <a href="8beda7fb-bbc4-b56f-fd1f-1459377ecb3b.htm">mpz_t</a>, <a href="37c88d6c-8d02-2330-ad77-f20fb73d1677.htm">mpf_t</a>, and <a href="f7e5846d-548d-3bf3-74ac-219fde42a041.htm">gmp_randstate_t</a>.
</div></td></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="4609ac5e-5cf9-cd20-2fa9-8040101c165c.htm">mp_ptr</a></td><td><div class="summary">
Represents a pointer to an array of <a href="bf1f694d-f9b2-6413-12e5-ebae603d5b49.htm">mp_limb_t</a> values in unmanaged memory,
</div></td></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="37c88d6c-8d02-2330-ad77-f20fb73d1677.htm">mpf_t</a></td><td><div class="summary">
Represents a multiple precision floating-point number.
</div></td></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="635f1879-5f85-881e-cca8-3222baf5045a.htm">mpq_t</a></td><td><div class="summary">
Represents a multiple precision rational number.
</div></td></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="8beda7fb-bbc4-b56f-fd1f-1459377ecb3b.htm">mpz_t</a></td><td><div class="summary">
Represents a multiple precision integer.
</div></td></tr><tr data="class; public"><td><img src="../icons/pubclass.gif" alt="Public class" title="Public class" /></td><td><a href="542faa00-d28a-72a2-2dd8-6c6021e683ce.htm">ptr<span id="LST120DDC11_0"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST120DDC11_0?cs=&lt;|vb=(Of |cpp=&lt;|nu=(|fs=&lt;'");</script>T<span id="LST120DDC11_1"></span><script type="text/javascript">AddLanguageSpecificTextSet("LST120DDC11_1?cs=&gt;|vb=)|cpp=&gt;|nu=)|fs=&gt;");</script></a></td><td><div class="summary">
Represents a pointer to a value of type <span class="typeparameter">T</span>.
</div></td></tr></table></div><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID1RB')" onkeypress="SectionExpandCollapse_CheckKey('ID1RB', event)" tabindex="0"><img id="ID1RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Structures</span></div><div id="ID1RBSection" class="collapsibleSection"><table class="members" id="structureList"><tr><th class="iconColumn">
 
</th><th>Structure</th><th>Description</th></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="06249483-9daf-95f9-32c7-30195550bbcc.htm">char_ptr</a></td><td><div class="summary">
Represents a pointer to a string in unmanaged memory.
</div></td></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="1bcc07bd-8fee-1107-844c-a5ff10e7660c.htm">FILE</a></td><td><div class="summary">
Represents a file stream.
</div></td></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="1b2b1d64-20c1-7a64-0278-d9ff58ee9cc3.htm">mp_bitcnt_t</a></td><td><div class="summary">
Represents a count of bits.
</div></td></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="e6a17880-791f-37d4-4942-cf26ce7d4cbf.htm">mp_exp_t</a></td><td><div class="summary">
Represents the exponent of a floating-point number.
</div></td></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="bf1f694d-f9b2-6413-12e5-ebae603d5b49.htm">mp_limb_t</a></td><td><div class="summary">
Represents a part of a multiple precision number.
</div></td></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="4b58a584-7a0e-b600-18fa-ebd493861eb3.htm">mp_size_t</a></td><td><div class="summary">
Represents a count of limbs.
</div></td></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="d9761bfb-1882-59d2-e89b-c6460141f9a6.htm">size_t</a></td><td><div class="summary">
Represents a count of characters or bytes.
</div></td></tr><tr data="structure; public"><td><img src="../icons/pubstructure.gif" alt="Public structure" title="Public structure" /></td><td><a href="e200d734-044d-4cc7-acc7-2333d7cf3c9a.htm">void_ptr</a></td><td><div class="summary">
Represents a pointer to a block of unmanaged memory.
</div></td></tr></table></div><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('ID2RB')" onkeypress="SectionExpandCollapse_CheckKey('ID2RB', event)" tabindex="0"><img id="ID2RBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Delegates</span></div><div id="ID2RBSection" class="collapsibleSection"><table class="members" id="delegateList"><tr><th class="iconColumn">
 
</th><th>Delegate</th><th>Description</th></tr><tr data="delegate; public"><td><img src="../icons/pubdelegate.gif" alt="Public delegate" title="Public delegate" /></td><td><a href="dfe3609d-cc50-e357-4254-e3a8e2847f07.htm">allocate_function</a></td><td><div class="summary">
Return a pointer to newly allocated space with at least <span class="parameter">alloc_size</span> bytes.
</div></td></tr><tr data="delegate; public"><td><img src="../icons/pubdelegate.gif" alt="Public delegate" title="Public delegate" /></td><td><a href="2c9876e2-a0f5-14c6-5069-1a9d50b89185.htm">free_function</a></td><td><div class="summary">
De-allocate the space pointed to by <span class="parameter">ptr</span>.
</div></td></tr><tr data="delegate; public"><td><img src="../icons/pubdelegate.gif" alt="Public delegate" title="Public delegate" /></td><td><a href="aa9d21b4-a929-d550-5a65-f9cbcfa7f638.htm">reallocate_function</a></td><td><div class="summary">
Resize a previously allocated block ptr of <span class="parameter">old_size</span> bytes to be <span class="parameter">new_size</span> bytes.
</div></td></tr></table></div></div></div><div id="pageFooter" class="pageFooter"> </div></body></html>