Re: TidMessage simple question

Giganews Newsgroups
Subject: Re: TidMessage simple question
Posted by:  Remy Lebeau (TeamB) (gambit…
Date: Fri, 15 Aug 2003

"Marcello Scala" <…> wrote in message…

> How can i calculate, in octects, the entire message size?

In short, you can't.  At least not directly.  You would have to store the
entire message to a stream or file first, and then query the size of the
resulting data.  TIdMessage's design is too dynamic to support querying the
size without actually encoding the full data first.



In response to

TidMessage simple question posted by Marcello Scala on Fri, 15 Aug 2003