AR_Engine_SDK
Functions | Variables
xthrift.lua File Reference

Functions

function xthrift load (buffer)
 
function xthrift load_file (path)
 
function xthrift decode (name, pbBuffer)
 
function xthrift decode_file (name, filePath)
 

Variables

 xthrift = {}
 

Function Documentation

◆ decode()

function xthrift decode ( name  ,
pbBuffer   
)

反序列化

Parameters
namestring thrift实体名称
pbBufferstring thrift数据流
Returns
table

◆ decode_file()

function xthrift decode_file ( name  ,
filePath   
)

反序列化

Parameters
namestring thrift实体名称
pbBufferstring thrift数据文件绝对路径
Returns
table

◆ load()

function xthrift load ( buffer  )

加载thrift类型描述文件

Parameters
pathstring thrift描述文件数据
Returns
void

◆ load_file()

function xthrift load_file ( path  )

加载thrift类型描述文件

Parameters
pathstring thrift文件绝对路径
Returns
void

Variable Documentation

◆ xthrift

xthrift = {}