Exemple #1
0
        public static void Serialize(this Packet packet, Stream stream)
        {
            int id = GetPacketTypeId(packet);
            RuntimeTypeModel model = RuntimeTypeModel.Default;
            Type             type  = packet.GetType();

            model.SerializeWithLengthPrefix(stream, packet, /*model.MapType*/ type, style, id);
        }