Searched refs:tot_read (Results 1 – 1 of 1) sorted by relevance
49 size_t tot_read = 0; in ReadFile() local51 ssize_t rsize = read(fd, buf + tot_read, length - tot_read); in ReadFile()58 tot_read += static_cast<size_t>(rsize); in ReadFile()59 } while (tot_read < length); in ReadFile()60 buf[tot_read < length ? tot_read : length - 1] = '\0'; in ReadFile()61 return tot_read; in ReadFile()