2017-12-03 23:32:51 +01:00
< 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 > mp_ptr Constructor (UInt32[])< / title > < meta name = "Language" content = "en-us" / > < meta name = "Microsoft.Help.Id" content = "M:Math.Gmp.Native.mp_ptr.#ctor(System.UInt32[])" / > < meta name = "Description" content = "Creates a new array of limbs initialized with in unmanaged memory." / > < meta name = "Microsoft.Help.ContentType" content = "Reference" / > < meta name = "BrandingAware" content = "true" / > < meta name = "container" content = "Math.Gmp.Native" / > < meta name = "file" content = "cad424b2-4a92-fda9-45dd-243ef9e5f321" / > < meta name = "guid" content = "cad424b2-4a92-fda9-45dd-243ef9e5f321" / > < 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 = "toclevel0" data-toclevel = "0" > < a class = "tocCollapsed" 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 = "toclevel0" data-toclevel = "0" > < 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 = "toclevel1" data-toclevel = "1" data-childrenloaded = "true" > < a class = "tocExpanded" onclick = "javascript: Toggle(this);" href = "#!" / > < a data-tochassubtree = "true" href = "33563f2c-baba-b555-20fb-9def8b70074c.htm" title = "mp_ptr Constructor " tocid = "33563f2c-baba-b555-20fb-9def8b70074c" > mp_ptr Constructor < / a > < / div > < div class = "toclevel2" data-toclevel = "2" > < a data-tochassubtree = "false" href = "be2f5733-8c21-c6e9-c4be-ca5f0b0ebba9.htm" title = "mp_ptr Constructor (Byte[])" tocid = "be2f5733-8c21-c6e9-c4be-ca5f0b0ebba9" > mp_ptr Constructor (Byte[])< / a > < / div > < div class = "toclevel2" data-toclevel = "2" > < a data-tochassubtree = "false" href = "54ac0eda-b14f-8083-16dc-6c0abe8a5e5e.htm" title = "mp_ptr Constructor (UInt16[])" tocid = "54ac0eda-b14f-8083-16dc-6c0abe8a5e5e" > mp_ptr Constructor (UInt16[])< / a > < / div > < div class = "toclevel2 current" data-toclevel = "2" > < a data-tochassubtree = "false" href = "cad424b2-4a92-fda9-45dd-243ef9e5f321.htm" title = "mp_ptr Constructor (UInt32[])" tocid = "cad424b2-4a92-fda9-45dd-243ef9e5f321" > mp_ptr Constructor (UInt32[])< / a > < / div > < div class = "toclevel2" data-toclevel = "2" > < a data-tochassubtree = "false" href = "ef5be106-0301-8122-c640-70bda121b879.htm" title = "mp_ptr Constructor (UInt64[])" tocid = "ef5be106-0301-8122-c640-70bda121b879" > mp_ptr Constructor (UInt64[])< / a > < / div > < div class = "toclevel2" data-toclevel = "2" > < a data-tochassubtree = "false" href = "49277bf7-6de2-6182-cb45-008c4cbde670.htm" title = "mp_ptr Constructor (mp_base)" tocid = "49277bf7-6de2-6182-cb45-008c4cbde670" > mp_ptr
2017-11-04 16:02:37 +01:00
Creates a new array of limbs initialized with < span class = "parameter" > values< / span > in unmanaged memory.
< / div > < p > < / p >
< strong > Namespace:< / strong >
< a href = "d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm" > Math.Gmp.Native< / a > < br / >
< strong > Assembly:< / strong >
Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)< 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" / > Syntax< / span > < / div > < div id = "ID1RBSection" class = "collapsibleSection" > < div class = "codeSnippetContainer" > < div class = "codeSnippetContainerTabs" > < div id = "ID0EDCA_tab1" class = "codeSnippetContainerTab" > < a href = "#" onclick = "javascript:ChangeTab('ID0EDCA','cs','1','4');return false;" > C#< / a > < / div > < div id = "ID0EDCA_tab2" class = "codeSnippetContainerTab" > < a href = "#" onclick = "javascript:ChangeTab('ID0EDCA','vb','2','4');return false;" > VB< / a > < / div > < div id = "ID0EDCA_tab3" class = "codeSnippetContainerTab" > < a href = "#" onclick = "javascript:ChangeTab('ID0EDCA','cpp','3','4');return false;" > C++< / a > < / div > < div id = "ID0EDCA_tab4" class = "codeSnippetContainerTab" > < a href = "#" onclick = "javascript:ChangeTab('ID0EDCA','fs','4','4');return false;" > F#< / a > < / div > < / div > < div class = "codeSnippetContainerCodeContainer" > < div class = "codeSnippetToolBar" > < div class = "codeSnippetToolBarText" > < a id = "ID0EDCA_copyCode" href = "#" class = "copyCodeSnippet" onclick = "javascript:CopyToClipboard('ID0EDCA');return false;" title = "Copy" > Copy< / a > < / div > < / div > < div id = "ID0EDCA_code_Div1" class = "codeSnippetContainerCode" style = "display: block" > < pre xml:space = "preserve" > < span class = "keyword" > public< / span > < span class = "identifier" > mp_ptr< / span > (
< span class = "identifier" > uint< / span > [] < span class = "parameter" > values< / span >
)< / pre > < / div > < div id = "ID0EDCA_code_Div2" class = "codeSnippetContainerCode" style = "display: none" > < pre xml:space = "preserve" > < span class = "keyword" > Public< / span > < span class = "keyword" > Sub< / span > < span class = "identifier" > New< / span > (
< span class = "parameter" > values< / span > < span class = "keyword" > As< / span > < span class = "identifier" > UInteger< / span > ()
)< / pre > < / div > < div id = "ID0EDCA_code_Div3" class = "codeSnippetContainerCode" style = "display: none" > < pre xml:space = "preserve" > < span class = "keyword" > public< / span > :
< span class = "identifier" > mp_ptr< / span > (
< span class = "keyword" > array< / span > < < span class = "identifier" > unsigned int< / span > > ^ < span class = "parameter" > values< / span >
)< / pre > < / div > < div id = "ID0EDCA_code_Div4" class = "codeSnippetContainerCode" style = "display: none" > < pre xml:space = "preserve" > < span class = "keyword" > new< / span > :
< span class = "parameter" > values< / span > : < span class = "identifier" > uint32< / span > [] < span class = "keyword" > -> < / span > < span class = "identifier" > mp_ptr< / span > < / pre > < / div > < / div > < / div > < script type = "text/javascript" > AddLanguageTabSet ( "ID0EDCA" ) ; < / script > < h4 class = "subHeading" > Parameters< / h4 > < dl > < dt > < span class = "parameter" > values< / span > < / dt > < dd > Type: < span id = "LSTAC0DA6A6_2" > < / span > < script type = "text/javascript" > AddLanguageSpecificTextSet ( "LSTAC0DA6A6_2?cpp=array<" ) ; < / script > < a href = "http://msdn2.microsoft.com/en-us/library/ctys3981" target = "_blank" > System< span id = "LSTAC0DA6A6_3" > < / span > < script type = "text/javascript" > AddLanguageSpecificTextSet ( "LSTAC0DA6A6_3?cs=.|vb=.|cpp=::|nu=.|fs=." ) ; < / script > UInt32< / a > < span id = "LSTAC0DA6A6_4" > < / span > < script type = "text/javascript" > AddLanguageSpecificTextSet ( "LSTAC0DA6A6_4?cpp=>|vb=()|nu=[]" ) ; < / script > < br / > The values of the limbs.< / dd > < / dl > < / 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" / > Remarks< / span > < / div > < div id = "ID2RBSection" class = "collapsibleSection" > < p >
If there is not enough 32-bit words to fill out the most significant limb, it is padded with zeroes.
< / p > < p >
When done with the array, you must release the unmanaged memory by calling < a href = "7924a2a3-75c1-0aa9-636f-4772d74a723f.htm" > free(< span id = "LSTAC0DA6A6_5" > < / span > < script type = "text/javascript" > AddLanguageSpecificTextSet ( "LSTAC0DA6A6_5?cpp=array<" ) ; < / script > mp_ptr< span id = "LSTAC0DA6A6_6" > < / span > < script type = "text/javascript" > AddLanguageSpecificTextSet ( "LSTAC0DA6A6_6?cpp=>|cs=[]|vb=()|nu=[]|fs=[]" ) ; < / script > )< / a > .
< / p > < / div > < div class = "collapsibleAreaRegion" id = "seeAlsoSection" > < span class = "collapsibleRegionTitle" onclick = "SectionExpandCollapse('ID3RB')" onkeypress = "SectionExpandCollapse_CheckKey('ID3RB', event)" tabindex = "0" > < img id = "ID3RBToggle" class = "collapseToggle" src = "../icons/SectionExpanded.png" / > See Also< / span > < / div > < div id = "ID3RBSection" class = "collapsibleSection" > < h4 class = "subHeading" > Reference< / h4 > < div class = "seeAlsoStyle" > < a href = "4609ac5e-5cf9-cd20-2fa9-8040101c165c.htm" > mp_ptr Class< / a > < / div > < div class = "seeAlsoStyle" > < a href = "33563f2c-baba-b555-20fb-9def8b70074c.htm" > mp_ptr Overload< / a > < / div > < div class = "seeAlsoStyle" > < a href = "d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm" > Math.Gmp.Native Namespace< / a > < / div > < / div > < / div > < / div > < div id = "pageFooter" class = "pageFooter" > < / div > < / body > < / html >