Exemplo n.º 1
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            BRequest_RemotePrimitiveTypes_sendAllTypes obj = (BRequest_RemotePrimitiveTypes_sendAllTypes)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_RemotePrimitiveTypes_sendAllTypes()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.bValue = bbuf.getBoolean();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.cValue = bbuf.getChar();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.dValue = bbuf.getDouble();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.fValue = bbuf.getFloat();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.iValue = bbuf.getInt();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.lValue = bbuf.getLong();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.sValue = bbuf.getShort();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.strValue = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.oValue = (Object)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.ptValue = (byps.test.api.prim.PrimitiveTypes)bin.readObj(false, null);

            return(obj);
        }
Exemplo n.º 2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemotePrimitiveTypes_sendAllTypes obj = (BRequest_RemotePrimitiveTypes_sendAllTypes)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.bValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putChar(obj.cValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putDouble(obj.dValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putFloat(obj.fValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.iValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.lValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putShort(obj.sValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.strValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.oValue, false, null);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.ptValue, false, null);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        // 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;
        }
		// 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);
		}