From kde-core-devel Wed May 23 13:38:53 2001 From: Richard Moore Date: Wed, 23 May 2001 13:38:53 +0000 To: kde-core-devel Subject: Re: qdatastream with checksum X-MARC-Message: https://marc.info/?l=kde-core-devel&m=99063396224705 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) . Wouldn't it be nicer to have a QDataStream subclass eg. KCRCDataStream? > > (I volunteer to implement this, just in case) You should be able to pull the CRC32 code from ZLib. > > What do you think? Sounds good. Rich. > > Bye, > Simon