Microsoft.SqlServer.TDS.SessionState.TDSSessionStateISOFipsOption.Inflate C# (CSharp) Method

Inflate() public method

Inflate from stream
public Inflate ( Stream source ) : bool
source Stream
return bool
        public override bool Inflate(Stream source)
        {
            // Reset inflation size
            InflationSize = 0;

            // NOTE: state ID is skipped because it is read by the construction factory

            // Read the value
            byte[] value = InflateValue(source);

            // Get transaction isolation level
            TransactionIsolationLevel = (TransactionIsolationLevelType)((byte)(value[0] & 0xf));

            // Inflation is complete
            return true;
        }
    }