Lines Matching refs:bytes_read
159 int bytes_read = 0;
185 while ((fSerialPort->Read(&c, 1) == 1) && (bytes_read < kMaxBytesToRead)) {
195 buffer[bytes_read] = c; // store the garbage for futher processing.
197 bytes_read++;
205 if (bytes_read == 0)
221 if (bytes_read < 3) // not enough data to even start... quit.
226 if (bytes_read == 5) {
337 uint8 bytes_read;
340 for (bytes_read = 0; bytes_read < mpsize; bytes_read++) {
349 if (bytes_read == 0) {
355 data[bytes_read] = c;
358 if (bytes_read == mpsize) {