Use internal read buffer of QIODevice


It is reasonable to use the internal read buffer of QIODevice instead of
additional QRingBuffer which currently are used. It will allow to reduce
an overhead when copying data as now there is not an excess chain with
QRingBuffer. Besides, the majority of I/O classes from QtCore (except
QProcess) also use the internal QIODevice buffer which are optimized for
this purpoze.

Tested on Windows 8 and Linux with the virtual com0com and on-board
serial ports.

Change-Id: I6c3d4b84593940ccfef8c15c9fbef16bddcd002f
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
commit0585be1fe38474e07d72f920e63c23d0252b00fe
parent2c171c043ce3c4ca40c8dd91971192efe3c0465e
authorDenis Shienkov <denis.shienkov@gmail.com>
committerDenis Shienkov <denis.shienkov@gmail.com>
commit timeMon, 17 Nov 2014 12:04:05 +0100