Hey Atul, the patch looks quite neat! This is much better than the old version. I think that using BinaryReader::readString() would make the resulting code even shorter.
Btw we should be carefull when calling functions with side effects in Q_ASSERTs. For example Q_ASSERT (reader.readByte() == 'i'); will not be compiled in a release build and the āiā will not be eaten.
Should we run the unit tests on release builds of the calitko library as well?
Regards,
Peter
atul wrote:Dear all
As per Peter’s suggestion, I moved the readInt() back to BDecoder….
Let me know …
—- cheers atul
