private void button_SendPacket_Click(object sender, EventArgs e) { string sendPacketText = textBox_SendPacket.Text.Trim(); byte[] packetBytes = HexTool.ToBytes(sendPacketText); var p = new PacketWriter(); p.WriteByte(packetBytes[0]); p.WriteByte(packetBytes[1]); p.WriteBytes(packetBytes); Client.session.SendPacket(p); }
public void WriteHexString(string value) { WriteBytes(HexTool.ToBytes(value, true)); }