Searched refs:read_count (Results 1 – 1 of 1) sorted by relevance
40 size_t read_count = 0; in readExactBytes() local41 while (read_count < count) { in readExactBytes()42 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count); in readExactBytes()47 read_count += result; in readExactBytes()49 return read_count == count ? count : -1; in readExactBytes()