public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin  bin  = (BInputBin)bin1;
            BBufferBin bbuf = bin.bbuf;

            // lengths
            int n2 = bbuf.getLength();
            int n1 = bbuf.getLength();
            int n0 = bbuf.getLength();

            // create array
            byps.test.api.inl.Point2D[,,] arr = new byps.test.api.inl.Point2D[n2, n1, n0];
            bin.onObjectCreated(arr);

            // read
            for (int i2 = 0; i2 < n2; i2++)
            {
                for (int i1 = 0; i1 < n1; i1++)
                {
                    for (int i0 = 0; i0 < n0; i0++)
                    {
                        arr[i2, i1, i0] = (byps.test.api.inl.Point2D)bin.readObj(false, byps.test.api.inl.BSerializer_1835035436.instance);
                    }
                }
            }

            return(arr);
        }
		public override Object read(Object obj1, BInput bin1, long version) {
			BInputBin bin = (BInputBin)bin1;
			BBufferBin bbuf = bin.bbuf;
			
			// lengths
			int n3 = bbuf.getLength();
			int n2 = bbuf.getLength();
			int n1 = bbuf.getLength();
			int n0 = bbuf.getLength();
			
			// create array
			byps.test.api.inl.Point2D[,,,] arr =  new byps.test.api.inl.Point2D[n3,n2,n1,n0];
			
			// read
			for (int i3 = 0; i3 < n3; i3++) {
				for (int i2 = 0; i2 < n2; i2++) {
					for (int i1 = 0; i1 < n1; i1++) {
						for (int i0 = 0; i0 < n0; i0++) {
							arr[i3,i2,i1,i0] = (byps.test.api.inl.Point2D)bin.readObj(false, byps.test.api.inl.BSerializer_1835035436.instance);
						}
					}
				}
			}
			
			return arr;
		}
Beispiel #3
0
        public override Object read(object obj1, BInput bin1, long version)
        {
            BInputBin  bin  = ((BInputBin)bin1);
            BBufferBin bbuf = bin.bbuf;
            int        n    = bbuf.getLength();
            List <byps.test.api.inl.Point2D> arr = new List <byps.test.api.inl.Point2D>(n);

            bin.onObjectCreated(arr);
            for (int i = 0; i < n; i++)
            {
                byps.test.api.inl.Point2D obj = (byps.test.api.inl.Point2D)bin.readObj(false, byps.test.api.inl.BSerializer_1835035436.instance);
                arr.Add(obj);
            }
            return(arr);
        }
		public override Object read(Object obj1, BInput bin1, long version) {
			BInputBin bin = (BInputBin)bin1;
			BBufferBin bbuf = bin.bbuf;
			
			// lengths
			int n0 = bbuf.getLength();
			
			// create array
			byps.test.api.inl.Point2D[] arr =  new byps.test.api.inl.Point2D[n0];
			
			// read
			for (int i0 = 0; i0 < n0; i0++) {
				arr[i0] = (byps.test.api.inl.Point2D)bin.readObj(false, byps.test.api.inl.BSerializer_1835035436.instance);
			}
			
			return arr;
		}
Beispiel #5
0
        public override Object read(object obj1, BInput bin1, long version)
        {
            BInputBin  bin  = ((BInputBin)bin1);
            BBufferBin bbuf = bin.bbuf;
            Dictionary <int, byps.test.api.inl.Point2D> map = new Dictionary <int, byps.test.api.inl.Point2D>();

            bin.onObjectCreated(map);
            int n = bbuf.getLength();

            for (int i = 0; i < n; i++)
            {
                int key = bbuf.getInt();
                byps.test.api.inl.Point2D value = (byps.test.api.inl.Point2D)bin.readObj(false, byps.test.api.inl.BSerializer_1835035436.instance);
                map[key] = value;
            }
            return(map);
        }