コード例 #1
0
ファイル: StringVector.cs プロジェクト: zhoujianhanyu/cAudio
 public StringVector(StringVector other) : this(cAudioCSharpWrapperPINVOKE.new_StringVector__SWIG_1(StringVector.getCPtr(other)), true)
 {
     if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: StringVector.cs プロジェクト: zhoujianhanyu/cAudio
 public StringVectorEnumerator(StringVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
ファイル: StringVector.cs プロジェクト: zhoujianhanyu/cAudio
 public void SetRange(int index, StringVector values)
 {
     cAudioCSharpWrapperPINVOKE.StringVector_SetRange(swigCPtr, index, StringVector.getCPtr(values));
     if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending)
     {
         throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
ファイル: StringVector.cs プロジェクト: zhoujianhanyu/cAudio
        public static StringVector Repeat(string value, int count)
        {
            IntPtr       cPtr = cAudioCSharpWrapperPINVOKE.StringVector_Repeat(value, count);
            StringVector ret  = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true);

            if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
ファイル: StringVector.cs プロジェクト: zhoujianhanyu/cAudio
        public StringVector GetRange(int index, int count)
        {
            IntPtr       cPtr = cAudioCSharpWrapperPINVOKE.StringVector_GetRange(swigCPtr, index, count);
            StringVector ret  = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true);

            if (cAudioCSharpWrapperPINVOKE.SWIGPendingException.Pending)
            {
                throw cAudioCSharpWrapperPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
ファイル: StringVector.cs プロジェクト: zhoujianhanyu/cAudio
 internal static HandleRef getCPtr(StringVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }