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

List:       kde-core-devel
Subject:    Re: qdatastream with checksum
From:       Richard Moore <rich () ipso-facto ! freeserve ! co ! uk>
Date:       2001-05-23 13:38:53
[Download RAW message or body]



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

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

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