activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tim.b...@sensis.com>
Subject Re: BytesMessage methods
Date Tue, 29 May 2007 13:54:51 GMT
They aren't const because in essence they are changing data in the
object.  They work like streams, moving the pointer in the stream along
as the appropriate amount of data is read, so they can't be const since
they affect the state of the object, which is why there is a reset
method, to change the state of the stream back to the beginning.

regards
Tim

On Tue, 2007-05-29 at 06:41 -0700, Motl wrote:
> Yes, sure
> 
> tabish121 wrote:
> > 
> > Are you referring to the C++ client?
> > 
> > On Tue, 2007-05-29 at 06:00 -0700, Motl wrote:
> >> Hi, 
> >> 
> >> is there a reason why readXXX() methods of BytesMessage aren't 'const'?
> >> 
> >> Thanks
> > 
> > 
> 

Mime
View raw message