Microsoft.SqlServer.TDS.Row.TDSRowToken.Deflate C# (CSharp) Method

Deflate() public method

Deflate the token
public Deflate ( Stream destination ) : void
destination Stream Stream to deflate token to
return void
        public override void Deflate(Stream destination)
        {
            // Serialize token identifier
            destination.WriteByte((byte)TDSTokenType.Row);

            // Process each column
            for (int index = 0; index < Metadata.Columns.Count; index++)
            {
                // Deflate each column
                DeflateColumn(destination, Metadata.Columns[index], Data[index]);
            }
        }
    }