Lines Matching refs:bytes_read
125 size_t bytes_read = 0; in ReadAll() local
127 while (bytes_read < count) { in ReadAll()
128 ssize_t rc = HANDLE_EINTR(read(fd, c_buf + bytes_read, count - bytes_read)); in ReadAll()
134 *out_bytes_read = bytes_read; in ReadAll()
144 bytes_read += rc; in ReadAll()
147 *out_bytes_read = bytes_read; in ReadAll()
207 ssize_t bytes_read = 0; in PReadAll() local
208 while (bytes_read < static_cast<ssize_t>(count)) { in PReadAll()
210 pread(fd, c_buf + bytes_read, count - bytes_read, offset + bytes_read); in PReadAll()
215 bytes_read += rc; in PReadAll()
217 *out_bytes_read = bytes_read; in PReadAll()
229 ssize_t bytes_read = 0; in ReadAll() local
230 while (bytes_read < static_cast<ssize_t>(count)) { in ReadAll()
231 ssize_t rc = fd->Read(c_buf + bytes_read, count - bytes_read); in ReadAll()
236 bytes_read += rc; in ReadAll()
238 *out_bytes_read = bytes_read; in ReadAll()
901 ssize_t bytes_read = 0; in ReadExtents() local
909 TEST_AND_RETURN_FALSE(bytes_read + bytes <= out_data_size); in ReadExtents()
911 &data[bytes_read], in ReadExtents()
916 bytes_read += bytes_read_this_iteration; in ReadExtents()
918 TEST_AND_RETURN_FALSE(out_data_size == bytes_read); in ReadExtents()