コード例 #1
0
 /// <summary> Construct <see cref="SafePacketScanner"/> from an existing <see cref="Packet"/>. </summary>
 /// <param name="Packet"> The packet to read data from. </param>
 public SafePacketScanner(Packet Packet)
 {
     this.Scanner = new PacketScanner(Packet);
 }
コード例 #2
0
        private PacketScanner Scanner; // Scanner to read data from

        /// <summary> Construct <see cref="SafePacketScanner"/> from a normal <see cref="PacketScanner"/>. </summary>
        /// <param name="Scanner"> A normal packet scanner. </param>
        public SafePacketScanner(PacketScanner Scanner)
        {
            this.Scanner = Scanner;
        }