public DataPacket(byte[] data) : base(data) { if (this.isXCMP) { this.xcmp = XCMPPacket.Decode(this.data); } }
public DataPacket(XCMPPacket pkt) : base(OpCode.DataMessage) { this.xcmp = pkt; this.isXCMP = true; this.data = pkt.Encode(); }