I want to send serialized QByteArray (may have arbitrary size) via TCP socket. I have read that signal readyRead() can be emitted even not all data available and user must manually check it by calling bytesAvailable(). But I didn't found how to get array's size on receiver side.