NIM Cocos2d-x SDK  2.2.0
Public Types | Static Public Member Functions | List of all members
nim::Global Class Reference

NIM SDK提供的一些全局接口 More...

#include <nim_cpp_global.h>

Public Types

typedef std::function< void(int log_level, const std::string &log)> SDKLogCallback
 

Static Public Member Functions

static void FreeStrBuf (char *str)
 
static void FreeBuf (void *data)
 
static void SetSDKLogCallback (const std::string &json_extension, const SDKLogCallback &callback)
 

Detailed Description

NIM SDK提供的一些全局接口

Member Typedef Documentation

◆ SDKLogCallback

typedef std::function<void(int log_level,const std::string& log)> nim::Global::SDKLogCallback

Member Function Documentation

◆ FreeBuf()

void nim::Global::FreeBuf ( void *  data)
static

释放SDK内部分配的内存

Parameters
[in]data由SDK内部分配的内存
Returns
void 无返回值

◆ FreeStrBuf()

void nim::Global::FreeStrBuf ( char *  str)
static

释放SDK内部分配的内存

Parameters
[in]str由SDK内部分配内存的字符串
Returns
void 无返回值

◆ SetSDKLogCallback()

static void nim::Global::SetSDKLogCallback ( const std::string &  json_extension,
const SDKLogCallback callback 
)
static

The documentation for this class was generated from the following file: