At.FF.Krems.FullscreenBrowser.HttpProcessor.StreamReadLine C# (CSharp) Method

StreamReadLine() private static method

The stream read line.
private static StreamReadLine ( Stream inputStream ) : string
inputStream Stream The input stream.
return string
        private static string StreamReadLine(Stream inputStream)
        {
            var text = string.Empty;
            while (true)
            {
                var num = inputStream.ReadByte();
                if (num == 10)
                {
                    break;
                }

                if (num == 13)
                {
                    continue;
                }

                if (num == -1)
                {
                    Thread.Sleep(1);
                }
                else
                {
                    text += Convert.ToChar(num);
                }
            }

            return text;
        }