/// <summary>
 /// write
 /// </summary>
 /// <param name="formatter"></param>
 public void Write(Utils.IFormatter formatter)
 {
     formatter.Write(this.RelativeZxid);
     formatter.Write(this.DataWatches);
     formatter.Write(this.ExistWatches);
     formatter.Write(this.ChildWatches);
 }
 /// <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();
 }
 /// <summary>
 /// 序列化
 /// </summary>
 /// <returns></returns>
 public void Write(Utils.IFormatter formatter)
 {
     formatter.Write(this.Path);
     formatter.Write(this.Data);
     formatter.Write(this.Acl);
     formatter.Write(this.Flags);
 }
 /// <summary>
 /// 序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Write(Utils.IFormatter formatter)
 {
     formatter.Write(this.ProtocolVersion);
     formatter.Write(this.LastZxidSeen);
     formatter.Write(this.SessionTimeOut);
     formatter.Write(this.SessionID);
     formatter.Write(this.SessionPassword);
 }
Example #5
0
 /// <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();
 }
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// read
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Path = formatter.ReadString();
 }
Example #8
0
 /// <summary>
 /// 序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Write(Utils.IFormatter formatter)
 {
     formatter.Write(this.Scheme);
     formatter.Write(this.ID);
 }
Example #9
0
 /// <summary>
 /// read
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Children = formatter.ReadStringArray();
 }
 /// <summary>
 /// write
 /// </summary>
 /// <param name="formatter"></param>
 public void Write(Utils.IFormatter formatter)
 {
     formatter.Write(this.Path);
     formatter.Write(this.Data);
     formatter.Write(this.Version);
 }
 /// <summary>
 /// write
 /// </summary>
 /// <param name="formatter"></param>
 public void Write(Utils.IFormatter formatter)
 {
 }
 /// <summary>
 /// read
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Acl  = formatter.ReadRecordList <ACL>();
     this.Stat = formatter.ReadRecord <Stat>();
 }
 /// <summary>
 /// read
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Children = formatter.ReadStringArray();
     this.Stat     = formatter.ReadRecord <Stat>();
 }
Example #14
0
 /// <summary>
 /// write
 /// </summary>
 /// <param name="formatter"></param>
 public void Write(Utils.IFormatter formatter)
 {
     formatter.Write(this.Path);
     formatter.Write(this.Watch);
 }
Example #15
0
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Scheme = formatter.ReadString();
     this.ID     = formatter.ReadString();
 }
Example #16
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();
 }
 /// <summary>
 /// read
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Data = formatter.ReadBuffer();
     this.Stat = formatter.ReadRecord <Stat>();
 }
Example #18
0
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Perms = (Perms)formatter.ReadInt32();
     this.ID    = formatter.ReadRecord <ZookID>();
 }
Example #19
0
 /// <summary>
 /// 序列化
 /// </summary>
 /// <param name="formatter"></param>
 public void Write(Utils.IFormatter formatter)
 {
     formatter.Write((int)this.Perms);
     formatter.Write(this.ID);
 }