Hi Petr,
Just checked your rev 140:
\todo Add assertions/validations for hash info and peer ID (these
have to be correctly set and must be exactly 20B long)
and I thought that we actually need and would need this thing quite often. For example Protocols::Generics::VendorCode is just that - 4 byte QByteArray. We could make a template out of it - something like FixedByteArray taking an int as a template argument. They we could define VendorCode as a typedef for FixedByteArray <4>. Similarly we could define RawPeerId as a typedef for FixedByteArray <20>
What do you think?
Regards,
Peter
