[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: qdatastream with checksum
From:       Simon Hausmann <hausmann () kde ! org>
Date:       2001-05-24 7:35:13
[Download RAW message or body]

On Wed, May 23, 2001 at 02:01:46PM -0700, Waldo Bastian wrote:
> On Wednesday 23 May 2001 06:25, Simon Hausmann wrote:
> > What I'm thinking of in detail is a KCheckSumByteArray (TODO: find better
> > name :) , which inherits from QByteArray and adds a checksum property
> > (like we could use a simple CRC32) when being marshalled into a QDataStream
> > (and does so likewise when reading from a QDataStream, including a check
> > of the checksum and setting a isValid() boolean property appropriately) .
> >
> > (I volunteer to implement this, just in case)
> >
> > What do you think?
> 
> Do you want to use KCheckSumByteArray as source for the QDataStream or do you 
> want to feed KCheckSumByteArray into the datastream? I think you need the 
> first.

Yes, but of course the KCheckSumByteArray can have operators for streaming into
and from a QDataStream :-)

Bye,
 Simon

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic