コード例 #1
0
 public SrtpCryptoVector(SrtpCryptoVector other) : this(pjsua2PINVOKE.new_SrtpCryptoVector__SWIG_1(SrtpCryptoVector.getCPtr(other)), true)
 {
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public SrtpCryptoVectorEnumerator(SrtpCryptoVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
 public void SetRange(int index, SrtpCryptoVector values)
 {
     pjsua2PINVOKE.SrtpCryptoVector_SetRange(swigCPtr, index, SrtpCryptoVector.getCPtr(values));
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public static SrtpCryptoVector Repeat(SrtpCrypto value, int count)
        {
            global::System.IntPtr cPtr = pjsua2PINVOKE.SrtpCryptoVector_Repeat(SrtpCrypto.getCPtr(value), count);
            SrtpCryptoVector      ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SrtpCryptoVector(cPtr, true);

            if (pjsua2PINVOKE.SWIGPendingException.Pending)
            {
                throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
        public SrtpCryptoVector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = pjsua2PINVOKE.SrtpCryptoVector_GetRange(swigCPtr, index, count);
            SrtpCryptoVector      ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SrtpCryptoVector(cPtr, true);

            if (pjsua2PINVOKE.SWIGPendingException.Pending)
            {
                throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SrtpCryptoVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }