コード例 #1
0
ファイル: LicenseCounter.cs プロジェクト: ThomasEcherer/elo
 public LicenseCounter(LicenseCounter rhs) : base(rhs)
 {
     this.userInfoValue  = rhs.userInfoValue;
     this.accessMapValue = rhs.accessMapValue;
     this.sumAccessValue = rhs.sumAccessValue;
     this.disabledValue  = rhs.disabledValue;
     this.countTypeValue = rhs.countTypeValue;
 }
コード例 #2
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            base.write(obj1, bout1, version);
            LicenseCounter obj  = (LicenseCounter)obj1;
            BOutputBin     bout = (BOutputBin)bout1;
            BBufferBin     bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.countType);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putBoolean(obj.disabled);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.sumAccess);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.accessMap, false, EloixClient.IndexServer.BSerializer_1434022628.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.userInfo, false, null);
        }
コード例 #3
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin      bin = (BInputBin)bin1;
            LicenseCounter obj = (LicenseCounter)(obj1 != null ? obj1 : bin.onObjectCreated(new LicenseCounter()));

            base.read(obj, bin1, version);
            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.countType = bbuf.getInt();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.disabled = bbuf.getBoolean();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.sumAccess = bbuf.getInt();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.accessMap = (Dictionary <int, int>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.userInfo = (EloixClient.IndexServer.UserInfo)bin.readObj(false, null);

            return(obj);
        }