/// <summary>
/// Protocol-aware deflation routine
/// </summary>
/// <param name="stream">Destination to deflate the message</param>
public void Deflate(TDSStream stream)
{
// Start a message on the stream
stream.StartMessage(MessageType);
// Iterate through each token and deflate it
foreach (TDSPacketToken token in this)
{
// Deflate token into the data stream
token.Deflate(stream);
}
// Complete the message
stream.EndMessage();
}