"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["6771"],{37456:function(e,s,n){n.r(s);var l=n(85893),r=n(50065);function i(e){let s=Object.assign({h1:"h1",a:"a",pre:"pre",code:"code",span:"span",p:"p",ul:"ul",li:"li"},(0,r.ah)(),e.components);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.h1,{id:"hbucpmalloc",children:[(0,l.jsx)(s.a,{className:"header-anchor","aria-hidden":"true",href:"#hbucpmalloc",children:"#"}),"hbUCPMalloc"]}),"\n",(0,l.jsx)(s.pre,{className:"code",children:(0,l.jsx)(s.pre,{className:"shiki css-variables has-line-number",style:{backgroundColor:"var(--shiki-color-background)"},tabIndex:"0",children:(0,l.jsxs)(s.code,{className:"language-cpp",meta:"",children:[(0,l.jsxs)(s.span,{className:"line line-number",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"int32_t"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"hbUCPMalloc"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"hbUCPSysMem"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"mem"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"uint64_t"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" size"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"int32_t"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" deviceId);"})]}),"\n"]})})}),"\n",(0,l.jsx)(s.p,{children:"Apply the system memory."}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["\n",(0,l.jsx)(s.p,{children:"Parameter"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["[out] ",(0,l.jsx)(s.code,{children:"mem"})," Memory pointer."]}),"\n",(0,l.jsxs)(s.li,{children:["[in] ",(0,l.jsx)(s.code,{children:"size"})," Size of the requested memory."]}),"\n",(0,l.jsxs)(s.li,{children:["[in] ",(0,l.jsx)(s.code,{children:"deviceId"})," Reserved parameter."]}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(s.li,{children:["\n",(0,l.jsx)(s.p,{children:"Return Value"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["Return ",(0,l.jsx)(s.code,{children:"0"})," means the API was successfully executed, otherwise the execution failed."]}),"\n"]}),"\n"]}),"\n"]})]})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,r.ah)(),e.components);return s?(0,l.jsx)(s,Object.assign({},e,{children:(0,l.jsx)(i,e)})):i(e)}s.default=c,c.__RSPRESS_PAGE_META={},c.__RSPRESS_PAGE_META["latest%2Fen%2Fguide%2Fucp%2Fucp_api_reference%2Fucp_api_function_interface%2Fhbucpmalloc.mdx"]={toc:[],title:"hbUCPMalloc",frontmatter:{}}}}]);