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