Re: TidMessage simple question

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

"Marcello Scala" <marcello.sca…@email.it> wrote in message
news:5871E5561B7BE240marcello.sca…@email.it...

> 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.

Gambit

Replies

In response to

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