public void WriteString(string data, bool nullIfEmpty = true) { byte[] array = PacketWriter.smethod_6(PacketWriter.smethod_5(), data); if (array.Length == 0 & nullIfEmpty) { goto IL_15; } goto IL_51; uint arg_35_0; while (true) { IL_30: uint num; switch ((num = (arg_35_0 ^ 3811660966u)) % 4u) { case 1u: goto IL_51; case 2u: array = new byte[1]; arg_35_0 = (num * 3327909538u ^ 4252286263u); continue; case 3u: goto IL_15; } break; } return; IL_15: arg_35_0 = 3517538860u; goto IL_30; IL_51: this.WriteBytes(array, 0); arg_35_0 = 2490499242u; goto IL_30; }
public void WriteCString(string data) { byte[] data2 = PacketWriter.smethod_6(PacketWriter.smethod_5(), data); this.WriteBytes(data2, 0); this.WriteUInt8(0); }