public CodecInfoVector(CodecInfoVector other) : this(pjsua2PINVOKE.new_CodecInfoVector__SWIG_1(CodecInfoVector.getCPtr(other)), true)
 {
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public CodecInfoVectorEnumerator(CodecInfoVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void SetRange(int index, CodecInfoVector values)
 {
     pjsua2PINVOKE.CodecInfoVector_SetRange(swigCPtr, index, CodecInfoVector.getCPtr(values));
     if (pjsua2PINVOKE.SWIGPendingException.Pending)
     {
         throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 4
0
        public CodecInfoVector videoCodecEnum()
        {
            CodecInfoVector ret = new CodecInfoVector(pjsua2PINVOKE.Endpoint_videoCodecEnum(swigCPtr), false);

            if (pjsua2PINVOKE.SWIGPendingException.Pending)
            {
                throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
    public static CodecInfoVector Repeat(CodecInfo value, int count)
    {
        global::System.IntPtr cPtr = pjsua2PINVOKE.CodecInfoVector_Repeat(CodecInfo.getCPtr(value), count);
        CodecInfoVector       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new CodecInfoVector(cPtr, true);

        if (pjsua2PINVOKE.SWIGPendingException.Pending)
        {
            throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public CodecInfoVector GetRange(int index, int count)
    {
        global::System.IntPtr cPtr = pjsua2PINVOKE.CodecInfoVector_GetRange(swigCPtr, index, count);
        CodecInfoVector       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new CodecInfoVector(cPtr, true);

        if (pjsua2PINVOKE.SWIGPendingException.Pending)
        {
            throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CodecInfoVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 8
0
 public CodecInfoVector codecEnum()
 {
     CodecInfoVector ret = new CodecInfoVector(pjsua2PINVOKE.Endpoint_codecEnum(swigCPtr), false);
     if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }