Microsoft.SqlServer.TDS.TDSUtilities.ReadInt C# (CSharp) Method

ReadInt() static private method

Read signed integer from the packet
static private ReadInt ( Stream source ) : int
source Stream
return int
        internal static int ReadInt(Stream source)
        {
            return (int)(source.ReadByte())
                + (int)(source.ReadByte() << 8)
                + (int)(source.ReadByte() << 16)
                + (int)(source.ReadByte() << 24);
        }