Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// read
 /// </summary>
 /// <param name="formatter"></param>
 public void Read(Utils.IFormatter formatter)
 {
     this.Data = formatter.ReadBuffer();
     this.Stat = formatter.ReadRecord <Stat>();
 }