예제 #1
0
 public ULongIntVector(ULongIntVector orig) : this(modshogunPINVOKE.new_ULongIntVector__SWIG_5(ULongIntVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
  public static long[] get_vector(ULongIntVector src) {
		IntPtr ptr = modshogunPINVOKE.ULongIntVector_get_vector__SWIG_1(ULongIntVector.getCPtr(src));
    if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
		int[] size = new int[1];
		Marshal.Copy(ptr, size, 0, 1);

		int len = size[0];

		long[] ret = new long[len];

		Marshal.Copy(new IntPtr(ptr.ToInt64() + Marshal.SizeOf(typeof(int))), ret, 0, len);
		return ret;
}
예제 #3
0
    public static long[] get_vector(ULongIntVector src, bool own)
    {
        IntPtr ptr = modshogunPINVOKE.ULongIntVector_get_vector__SWIG_0(ULongIntVector.getCPtr(src), own);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        int[] size = new int[1];
        Marshal.Copy(ptr, size, 0, 1);

        int len = size[0];

        long[] ret = new long[len];

        Marshal.Copy(new IntPtr(ptr.ToInt64() + Marshal.SizeOf(typeof(int))), ret, 0, len);
        return(ret);
    }
예제 #4
0
 internal static HandleRef getCPtr(ULongIntVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
예제 #5
0
 public ULongIntVector(ULongIntVector orig) : this(modshogunPINVOKE.new_ULongIntVector__SWIG_5(ULongIntVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #6
0
 internal static HandleRef getCPtr(ULongIntVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }