Example #1
0
        protected bool ReadBooleanFromStream(IPacketReader packetReader, Stream stream)
        {
            var registered = new byte[1];

            stream.Read(registered, 0, 1);
            return(packetReader.ConvertByteToBoolean(registered[0]));
        }