public RescueArrayFragment Create(long iLowBound,
                                          long iCount,
                                          long jLowBound,
                                          long jCount,
                                          long kLowBound,
                                          long kCount)
        {
            long returnNdx = Create15(nativeNdx
                                      , iLowBound
                                      , iCount
                                      , jLowBound
                                      , jCount
                                      , kLowBound
                                      , kCount);

            if (returnNdx == 0)
            {
                return(null);
            }
            else
            {
                RescueArrayFragment myReturn = new RescueArrayFragmentInt(returnNdx);
                return(myReturn);
            }
        }
Beispiel #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);
            }
        }
        public RescueArrayFragment Load(long iLowBound,
                                        long iCount,
                                        long jLowBound,
                                        long jCount)
        {
            long returnNdx = Load12(nativeNdx
                                    , iLowBound
                                    , iCount
                                    , jLowBound
                                    , jCount);

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