예제 #1
0
        public RescueArrayFragment Create(long iLowBound,
                                          long iCount,
                                          long jLowBound,
                                          long jCount,
                                          long kLowBound,
                                          long kCount)
        {
            long returnNdx = Create14(nativeNdx
                                      , iLowBound
                                      , iCount
                                      , jLowBound
                                      , jCount
                                      , kLowBound
                                      , kCount);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueArrayFragment myReturn = new RescueArrayFragment2dVector(returnNdx);
                return(myReturn);
            }
        }
예제 #2
0
        public RescueArrayFragment NthObject(long ordinal)
        {
            long[] returnNdx = NthObject5x(nativeNdx
                                           , ordinal);
            if (returnNdx == null)
            {
                return(null);
            }
            else
            {
                RescueArrayFragment myReturn = null;
                switch ((int)returnNdx[1])
                {
                case RescueObject.R_RescueArrayDouble:
                    myReturn = new RescueArrayFragmentDouble(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayByte:
                    myReturn = new RescueArrayFragmentByte(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayShort:
                    myReturn = new RescueArrayFragmentShort(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayFloat:
                    myReturn = new RescueArrayFragmentFloat(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArray2dVector:
                    myReturn = new RescueArrayFragment2dVector(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArray3dVector:
                    myReturn = new RescueArrayFragment3dVector(returnNdx[0]);
                    break;

                case RescueObject.R_RescueArrayInt:
                    myReturn = new RescueArrayFragmentInt(returnNdx[0]);
                    break;
                }
                return(myReturn);
            }
        }
예제 #3
0
        public RescueArrayFragment Load(long iLowBound,
                                        long iCount,
                                        long jLowBound,
                                        long jCount)
        {
            long returnNdx = Load11(nativeNdx
                                    , iLowBound
                                    , iCount
                                    , jLowBound
                                    , jCount);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueArrayFragment myReturn = new RescueArrayFragment2dVector(returnNdx);
                return(myReturn);
            }
        }