Lines Matching refs:read_bytes
269 size_t read_bytes = 0; in ReadMapFileAsyncSafe() local
274 TEMP_FAILURE_RETRY(read(fd, char_buffer + read_bytes, buffer_size - read_bytes - 1)); in ReadMapFileAsyncSafe()
276 if (read_bytes == 0) { in ReadMapFileAsyncSafe()
281 char_buffer[start + read_bytes] = '\n'; in ReadMapFileAsyncSafe()
285 read_bytes += bytes; in ReadMapFileAsyncSafe()
287 while (read_bytes > 0) { in ReadMapFileAsyncSafe()
288 char* newline = reinterpret_cast<char*>(memchr(&char_buffer[start], '\n', read_bytes)); in ReadMapFileAsyncSafe()
295 read_bytes -= newline - line + 1; in ReadMapFileAsyncSafe()
306 if (start == 0 && read_bytes == buffer_size - 1) { in ReadMapFileAsyncSafe()
315 if (read_bytes > 0) { in ReadMapFileAsyncSafe()
316 memmove(char_buffer, &char_buffer[start], read_bytes); in ReadMapFileAsyncSafe()