Microsoft.SqlServer.TDS.Done.TDSDoneToken.Deflate C# (CSharp) Method

Deflate() public method

Deflate the token
public Deflate ( Stream destination ) : void
destination System.IO.Stream Stream to deflate token to
return void
        public override void Deflate(Stream destination)
        {
            // Write token identifier
            destination.WriteByte((byte)TDSTokenType.Done);

            // Write status
            TDSUtilities.WriteUShort(destination, (ushort)Status);

            // Write command
            TDSUtilities.WriteUShort(destination, (ushort)Command);

            // Write row count
            TDSUtilities.WriteULong(destination, RowCount);
        }
    }