コード例 #1
0
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.ProtocolVersion = formatter.ReadInt32();
     this.SessionTimeOut = formatter.ReadInt32();
     this.SessionID = formatter.ReadInt64();
     this.SessionPassword = formatter.ReadBuffer();
 }
コード例 #2
0
ファイル: Stat.cs プロジェクト: RANENTONG/Zookeeper.Net
 /// <summary>
 /// read
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Czxid = formatter.ReadInt64();
     this.Mzxid = formatter.ReadInt64();
     this.Ctime = formatter.ReadInt64();
     this.Mtime = formatter.ReadInt64();
     this.Version = formatter.ReadInt32();
     this.Cversion = formatter.ReadInt32();
     this.Aversion = formatter.ReadInt32();
     this.EphemeralOwner = formatter.ReadInt64();
     this.DataLength = formatter.ReadInt32();
     this.NumChildren = formatter.ReadInt32();
     this.Pzxid = formatter.ReadInt64();
 }
コード例 #3
0
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Type = (EventType)formatter.ReadInt32();
     this.State = (KeeperState)formatter.ReadInt32();
     this.Path = formatter.ReadString();
 }