示例#1
0
文件: helpers.go 项目: botvs/gotalib
func helper_callFunction(params *C.TA_ParamHolder, startIndex, endIndex int, out1, out2 *C.TA_Integer) {
	if C.TA_CallFunc(
		params,
		C.TA_Integer(startIndex),
		C.TA_Integer(endIndex),
		out1, out2) != C.TA_SUCCESS {
		panic("doh")
	}
}
示例#2
0
文件: helpers.go 项目: botvs/gotalib
func helper_convertGoIntArrayToTaIntegerArray(inData []int, outData *[]C.TA_Integer) {
	dataLength := len(inData)
	*outData = make([]C.TA_Integer, dataLength)
	for i := 0; i < dataLength; i++ {
		(*outData)[i] = C.TA_Integer(inData[i])
	}
}
示例#3
0
文件: helpers.go 项目: botvs/gotalib
func helper_setOptInputDataInteger(params *C.TA_ParamHolder, paramIndex int, value int) {
	if ret := C.TA_SetOptInputParamInteger(params, C.uint(paramIndex), C.TA_Integer(value)); ret != C.TA_SUCCESS {
		panic("doh")
	}
}