1# native_avmemory.h 2 3 4## Overview 5 6The **native_avmemory.h** file declares the attribute definition of the media struct **AVMemory**. 7 8**Library**: libnative_media_core.so 9 10**System capability**: SystemCapability.Multimedia.Media.Core 11 12**Since**: 9 13 14**Related module**: [Core](_core.md) 15 16 17## Summary 18 19 20### Types 21 22| Name| Description| 23| -------- | -------- | 24| typedef struct [OH_AVMemory](_core.md#oh_avmemory) [OH_AVMemory](_core.md#oh_avmemory) | Defines a struct that describes a native object for the audio and video memory interface. | 25 26 27### Functions 28 29| Name| Description| 30| -------- | -------- | 31| [OH_AVMemory](_core.md#oh_avmemory) \* [OH_AVMemory_Create](_core.md#oh_avmemory_create) (int32_t size) | Creates an **OH_AVMemory** instance. (This function is deprecated in API version 11.) | 32| uint8_t \* [OH_AVMemory_GetAddr](_core.md#oh_avmemory_getaddr) (struct [OH_AVMemory](_core.md#oh_avmemory) \*mem) | Obtains the virtual memory address. (This function is deprecated in API version 11.)| 33| int32_t [OH_AVMemory_GetSize](_core.md#oh_avmemory_getsize) (struct [OH_AVMemory](_core.md#oh_avmemory) \*mem) | Obtains the memory length. (This function is deprecated in API version 11.) | 34| [OH_AVErrCode](_core.md#oh_averrcode) [OH_AVMemory_Destroy](_core.md#oh_avmemory_destroy) (struct [OH_AVMemory](_core.md#oh_avmemory) \*mem) | Releases an **OH_AVMemory** instance. (This function is deprecated in API version 11.)| 35