func helper_convertGoFloat64ArrayToTaRealArray(inData []float64, outData *[]C.TA_Real) { dataLength := len(inData) *outData = make([]C.TA_Real, dataLength) for i := 0; i < dataLength; i++ { (*outData)[i] = C.TA_Real(inData[i]) } }
func helper_setOptInputDataReal(params *C.TA_ParamHolder, paramIndex int, value float64) { if C.TA_SetOptInputParamReal(params, C.uint(paramIndex), C.TA_Real(value)) != C.TA_SUCCESS { panic("doh") } }