C++/Common: check event capacity value on resize/grow. Fix move constructor/assignment so that it leaves the moved-from object in a valid state (an empty packet with capacity=0).
C++/Common: check event capacity value on resize/grow.
Fix move constructor/assignment so that it leaves the moved-from object in a valid state (an empty packet with
capacity=0).

inilabs/libcaer,inilabs/libcaer,inilabs/libcaer,inilabs/libcaer