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.prim.PrimitiveTypes[,,,] arr =  new byps.test.api.prim.PrimitiveTypes[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.prim.PrimitiveTypes)bin.readObj(false, null);
						}
					}
				}
			}
			
			return arr;
		}
        public virtual void SetPrimitiveTypes(byps.test.api.prim.PrimitiveTypes v, BAsyncResult <Object> asyncResult)
        {
            BRequest_RemotePrimitiveTypes_setPrimitiveTypes req = new BRequest_RemotePrimitiveTypes_setPrimitiveTypes();

            req.vValue = v;
            transport.sendMethod(req, asyncResult);
        }
        public virtual void SetPrimitiveTypes(byps.test.api.prim.PrimitiveTypes v)
        {
            BSyncResult <Object> asyncResult = new BSyncResult <Object>();

            SetPrimitiveTypes(v, BAsyncResultHelper.ToDelegate <Object>(asyncResult));
            asyncResult.GetResult();
        }
        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.prim.PrimitiveTypes[,,] arr = new byps.test.api.prim.PrimitiveTypes[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.prim.PrimitiveTypes)bin.readObj(false, null);
                    }
                }
            }

            return(arr);
        }
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task SetPrimitiveTypesAsync(byps.test.api.prim.PrimitiveTypes v)
        {
            BRequest_RemotePrimitiveTypes_setPrimitiveTypes req = new BRequest_RemotePrimitiveTypes_setPrimitiveTypes();

            req.vValue = v;
            Task <Object> task = Task <Object> .Factory.FromAsync(transport.BeginSend <Object>, transport.EndSend <Object>, req, null);

            await task;
        }
        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.prim.PrimitiveTypes> arr = new List <byps.test.api.prim.PrimitiveTypes>(n);

            bin.onObjectCreated(arr);
            for (int i = 0; i < n; i++)
            {
                byps.test.api.prim.PrimitiveTypes obj = (byps.test.api.prim.PrimitiveTypes)bin.readObj(false, null);
                arr.Add(obj);
            }
            return(arr);
        }
Beispiel #7
0
        public override Object read(object obj1, BInput bin1, long version)
        {
            BInputBin  bin  = ((BInputBin)bin1);
            BBufferBin bbuf = bin.bbuf;
            Dictionary <int, byps.test.api.prim.PrimitiveTypes> map = new Dictionary <int, byps.test.api.prim.PrimitiveTypes>();

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

            for (int i = 0; i < n; i++)
            {
                int key = bbuf.getInt();
                byps.test.api.prim.PrimitiveTypes value = (byps.test.api.prim.PrimitiveTypes)bin.readObj(false, null);
                map[key] = value;
            }
            return(map);
        }
		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.prim.PrimitiveTypes[] arr =  new byps.test.api.prim.PrimitiveTypes[n0];
			
			// read
			for (int i0 = 0; i0 < n0; i0++) {
				arr[i0] = (byps.test.api.prim.PrimitiveTypes)bin.readObj(false, null);
			}
			
			return arr;
		}
Beispiel #9
0
 public PrivateMembers(bool @boolVal, byte @byteVal, char @charVal, short @shortVal, int @intVal, long @longVal, float @floatVal, double @doubleVal, String @stringVal, byps.test.api.prim.PrimitiveTypes @primitiveTypes, bool[] @arrBool, int[] @arrInt, String[] @arrString, byps.test.api.prim.PrimitiveTypes[] @arrPrimitiveTypes, IList <bool> @listBool, IList <int> @listInt, IList <String> @listString, IList <byps.test.api.prim.PrimitiveTypes> @listPrimitiveTypes, IDictionary <int, IList <String> > @mapIntListString, int @protInt, int @pprotInt)
 {
     this.boolValValue            = @boolVal;
     this.byteValValue            = @byteVal;
     this.charValValue            = @charVal;
     this.shortValValue           = @shortVal;
     this.intValValue             = @intVal;
     this.longValValue            = @longVal;
     this.floatValValue           = @floatVal;
     this.doubleValValue          = @doubleVal;
     this.stringValValue          = @stringVal;
     this.primitiveTypesValue     = @primitiveTypes;
     this.arrBoolValue            = @arrBool;
     this.arrIntValue             = @arrInt;
     this.arrStringValue          = @arrString;
     this.arrPrimitiveTypesValue  = @arrPrimitiveTypes;
     this.listBoolValue           = @listBool;
     this.listIntValue            = @listInt;
     this.listStringValue         = @listString;
     this.listPrimitiveTypesValue = @listPrimitiveTypes;
     this.mapIntListStringValue   = @mapIntListString;
     this.protIntValue            = @protInt;
     this.pprotIntValue           = @pprotInt;
 }
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task SendAllTypesAsync(bool b, char c, short s, int i, long l, float f, double d, String str, byps.test.api.prim.PrimitiveTypes pt, Object o)
        {
            BRequest_RemotePrimitiveTypes_sendAllTypes req = new BRequest_RemotePrimitiveTypes_sendAllTypes();

            req.bValue   = b;
            req.cValue   = c;
            req.sValue   = s;
            req.iValue   = i;
            req.lValue   = l;
            req.fValue   = f;
            req.dValue   = d;
            req.strValue = str;
            req.ptValue  = pt;
            req.oValue   = o;
            Task <Object> task = Task <Object> .Factory.FromAsync(transport.BeginSend <Object>, transport.EndSend <Object>, req, null);

            await task;
        }
        public virtual void SendAllTypes(bool b, char c, short s, int i, long l, float f, double d, String str, byps.test.api.prim.PrimitiveTypes pt, Object o, BAsyncResult <Object> asyncResult)
        {
            BRequest_RemotePrimitiveTypes_sendAllTypes req = new BRequest_RemotePrimitiveTypes_sendAllTypes();

            req.bValue   = b;
            req.cValue   = c;
            req.sValue   = s;
            req.iValue   = i;
            req.lValue   = l;
            req.fValue   = f;
            req.dValue   = d;
            req.strValue = str;
            req.ptValue  = pt;
            req.oValue   = o;
            transport.sendMethod(req, asyncResult);
        }
        public virtual void SendAllTypes(bool b, char c, short s, int i, long l, float f, double d, String str, byps.test.api.prim.PrimitiveTypes pt, Object o)
        {
            BSyncResult <Object> asyncResult = new BSyncResult <Object>();

            SendAllTypes(b, c, s, i, l, f, d, str, pt, o, BAsyncResultHelper.ToDelegate <Object>(asyncResult));
            asyncResult.GetResult();
        }