public void Reset() { this.PacketType = enPacketType.None; this.MainCmd = 0; this.SubCmd = 0; this.Size = 0; this.CheckCode = 0; this.Version = 0; this.Data = null; this.HeadSize = 0; }
public Packet(enPacketType type) { Reset(); this.PacketType = type; }