Inheritance: global::System.IDisposable
Beispiel #1
0
        public static floatArray frompointer(SWIGTYPE_p_float t)
        {
            global::System.IntPtr cPtr = fannfloatPINVOKE.floatArray_frompointer(SWIGTYPE_p_float.getCPtr(t));
            floatArray            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new floatArray(cPtr, false);

            return(ret);
        }
Beispiel #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(floatArray obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(floatArray obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
        private void InternalCallback(uint number, uint inputCount, uint outputCount, global::System.IntPtr inputs, global::System.IntPtr outputs)
        {
            float[] callbackInput = new float[inputCount];
            float[] callbackOutput = new float[outputCount];

            Callback(number, inputCount, outputCount, callbackInput, callbackOutput);

            using (floatArray inputArray = new floatArray(inputs, false))
            using (floatArray outputArray = new floatArray(outputs, false))
            {
                for (int i = 0; i < inputCount; i++)
                {
                    inputArray.setitem(i, callbackInput[i]);
                }
                for (int i = 0; i < outputCount; i++)
                {
                    outputArray.setitem(i, callbackOutput[i]);
                }
            }
        }