文档

​
​

Development

User Acquisition

Monetization

工业

Vivox Core SDK

Vivox Core SDK

此页面不支持所选语言。
Vivox
​
​
Vivox Core SDK
  • Overview
  • Before you begin
  • Get started
  • Release notes
  • Developer Guide
  • Reference
    • Access Token Developer Guide
    • Server to Server Web API Reference Guide
    • Core API Reference Manual
      • Modules
        • Initialization
        • Sending and Receiving Vivox Messages
        • Memory Management
        • Logging In and Logging Out
        • Group Voice and Text Communications
        • Audio Devices
        • Diagnostics
      • Data Structures
      • Deprecated List
    • Third-party license information
  • Privacy overview
  1. Vivox Core SDK documentation

Memory Management

Reference the Vivox Core SDK API.
阅读时间2 分钟
最后更新于 8 个月前

Functions

Name

VIVOXSDK_DLLEXPORT intvx_cookie_create(const char * value, VX_COOKIE * cookie)
Allocate and initialize a cookie.
VIVOXSDK_DLLEXPORT intvx_cookie_free(VX_COOKIE * cookie)
Free a cookie.
VIVOXSDK_DLLEXPORT char *vx_strdup(const char * )
Allocate string data to send to the SDK.
VIVOXSDK_DLLEXPORT intvx_free(char * )
Free string data returned to the application.
VIVOXSDK_DLLEXPORT intvx_on_application_exit(void )
Some applications may need to call this routine before exiting.
VIVOXSDK_DLLEXPORT intvx_destroy_message(vx_message_base_t * message)
Deallocate any message of any type.
VIVOXSDK_DLLEXPORT intdestroy_req(vx_req_base_t * pCmd)
Destroy a request of any type.
VIVOXSDK_DLLEXPORT intdestroy_resp(vx_resp_base_t * pCmd)
Deallocate a response object of any type.
VIVOXSDK_DLLEXPORT intdestroy_evt(vx_evt_base_t * pCmd)
Free any event of any type.

Functions Documentation

function vx_cookie_create

VIVOXSDK_DLLEXPORT int vx_cookie_create( const char * value, VX_COOKIE * cookie)
Allocate and initialize a cookie.

function vx_cookie_free

VIVOXSDK_DLLEXPORT int vx_cookie_free( VX_COOKIE * cookie)
Free a cookie.

function vx_strdup

VIVOXSDK_DLLEXPORT char * vx_strdup( const char * )
Allocate string data to send to the SDK.
Note: This function will not work until vx_initialize3() is called and after vx_uninitialize() is called.

function vx_free

VIVOXSDK_DLLEXPORT int vx_free( char * )
Free string data returned to the application.
Note: This function will not work until vx_initialize3() is called and after vx_uninitialize() is called.
This function is rarely used in practice.

function vx_on_application_exit

VIVOXSDK_DLLEXPORT int vx_on_application_exit( void )
Some applications may need to call this routine before exiting.
Note: Applications must call vx_uninitialize() before calling this routine.
Attention: PC, console, and mobile applications are not required to call this routine because it has no effect for applications on these platforms.

function vx_destroy_message

VIVOXSDK_DLLEXPORT int vx_destroy_message( vx_message_base_t * message)
Deallocate any message of any type.

function destroy_req

VIVOXSDK_DLLEXPORT int destroy_req( vx_req_base_t * pCmd)
Destroy a request of any type.

function destroy_resp

VIVOXSDK_DLLEXPORT int destroy_resp( vx_resp_base_t * pCmd)
Deallocate a response object of any type.

function destroy_evt

VIVOXSDK_DLLEXPORT int destroy_evt( vx_evt_base_t * pCmd)
Free any event of any type.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Functions

    • Functions Documentation

      • function vx_cookie_create

      • function vx_cookie_free

      • function vx_strdup

      • function vx_free

      • function vx_on_application_exit

      • function vx_destroy_message

      • function destroy_req

      • function destroy_resp

      • function destroy_evt


报告此页面的问题