コード例 #1
0
ファイル: Fooector.cs プロジェクト: vgvgvvv/Learn-UnityCPP
    public Fooector GetRange(int index, int count)
    {
        global::System.IntPtr cPtr = swiglibPINVOKE.Fooector_GetRange(swigCPtr, index, count);
        Fooector ret = (cPtr == global::System.IntPtr.Zero) ? null : new Fooector(cPtr, true);

        if (swiglibPINVOKE.SWIGPendingException.Pending)
        {
            throw swiglibPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #2
0
ファイル: Fooector.cs プロジェクト: vgvgvvv/Learn-UnityCPP
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Fooector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }