"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["1112"],{82151:function(e,s,n){n.r(s);var l=n(85893),r=n(50065);function c(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:"\u7533\u8BF7\u7CFB\u7EDF\u5185\u5B58\u3002"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["\n",(0,l.jsx)(s.p,{children:"\u53C2\u6570"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["[out] ",(0,l.jsx)(s.code,{children:"mem"})," \u5185\u5B58\u6307\u9488\u3002"]}),"\n",(0,l.jsxs)(s.li,{children:["[in] ",(0,l.jsx)(s.code,{children:"size"})," \u7533\u8BF7\u5185\u5B58\u7684\u5927\u5C0F\u3002"]}),"\n",(0,l.jsxs)(s.li,{children:["[in] ",(0,l.jsx)(s.code,{children:"deviceId"})," \u4FDD\u7559\u53C2\u6570\u3002"]}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(s.li,{children:["\n",(0,l.jsx)(s.p,{children:"\u8FD4\u56DE\u503C"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsxs)(s.li,{children:["\u8FD4\u56DE ",(0,l.jsx)(s.code,{children:"0"})," \u5219\u8868\u793AAPI\u6210\u529F\u6267\u884C\uFF0C\u5426\u5219\u6267\u884C\u5931\u8D25\u3002"]}),"\n"]}),"\n"]}),"\n"]})]})}function i(){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)(c,e)})):c(e)}s.default=i,i.__RSPRESS_PAGE_META={},i.__RSPRESS_PAGE_META["latest%2Fzh%2Fguide%2Fucp%2Fucp_api_reference%2Fucp_api_function_interface%2Fhbucpmalloc.mdx"]={toc:[],title:"hbUCPMalloc",frontmatter:{}}}}]);