Esempio n. 1
0
        public override void Serialize(PacketWriter writer, bool prefix)
        {
            PacketWriter pw = new PacketWriter();

            base.Serialize(pw, prefix);

            int lengthPosition = pw.Position;
            pw.WriteInt(0); // length

            pw.WriteInt(RequestId);
            pw.WriteInt(Header);
            pw.WriteStringNoZero(RconData);

            pw.Position = lengthPosition;

            pw.WriteInt(pw.Length);
        }
Esempio n. 2
0
        public override void Serialize(PacketWriter writer, bool prefix)
        {
            if (prefix) {
                writer.BlockCopy(SteamPacket.Prefix);
            }

            writer.WriteStringNoZero(Request);
        }
Esempio n. 3
0
        public override void Serialize(PacketWriter writer, bool prefix)
        {
            base.Serialize(writer, prefix);

            writer.WriteStringNoZero(Response);
        }