BitSharper.IO.StreamExtensions.Read C# (CSharp) Method

Read() public static method

public static Read ( this stream ) : int
stream this
return int
        public static int Read(this Stream stream)
        {
            var buffer = new byte[1];
            return stream.Read(buffer) == 1 ? buffer[0] : -1;
        }

Same methods

StreamExtensions::Read ( this stream, byte buffer ) : int
StreamExtensions