From kde-core-devel Thu May 24 07:35:13 2001 From: Simon Hausmann Date: Thu, 24 May 2001 07:35:13 +0000 To: kde-core-devel Subject: Re: qdatastream with checksum X-MARC-Message: https://marc.info/?l=kde-core-devel&m=99068993929114 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