internal static int CreateInputTuple(IntPtr proc, int parIndex, int length, out IntPtr tuple) { int inputTuple = HalconAPI.GetInputTuple(proc, parIndex, out tuple); if (!HalconAPI.IsFailure(inputTuple)) { return(HalconAPI.CreateElements(tuple, length)); } return(inputTuple); }
protected override void StoreData(IntPtr proc, IntPtr tuple) { this.PinTuple(); if (HalconAPI.isPlatform64) { HalconAPI.HCkP(proc, HalconAPI.CreateElements(tuple, this.Length)); for (int index = 0; index < this.Length; ++index) { HalconAPI.SetI(tuple, index, this.i[index]); } } else { HalconAPI.SetIArrPtr(tuple, this.i, this.iLength); } }