# OHOS::SurfaceBuffer - [Overview](#section977729523165633) - [Summary](#section1163816034165633) - [Public Member Functions](#pub-methods) ## **Overview** **Related Modules:** [Surface](Surface.md) **Description:** Provides functions such as setting the virtual address, size, and additional attributes of shared memory. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions
GetVirAddr () const =0 |
Obtains the virtual address of shared memory for producers and consumers. |
GetPhyAddr () const =0 |
|
GetSize () const =0 |
|
SetSize (uint32_t size)=0 |
|
SetInt32 (uint32_t key, int32_t value)=0 |
|
GetInt32 (uint32_t key, int32_t &value)=0 |
|
SetInt64 (uint32_t key, int64_t value)=0 |
|
GetInt64 (uint32_t key, int64_t &value)=0 |