Lines Matching refs:bytes_read
146 size_t bytes_read = 0; in ReadAll() local
148 while (bytes_read < count) { in ReadAll()
149 ssize_t rc = HANDLE_EINTR(read(fd, c_buf + bytes_read, count - bytes_read)); in ReadAll()
155 *out_bytes_read = bytes_read; in ReadAll()
165 bytes_read += rc; in ReadAll()
168 *out_bytes_read = bytes_read; in ReadAll()
228 ssize_t bytes_read = 0; in PReadAll() local
229 while (bytes_read < static_cast<ssize_t>(count)) { in PReadAll()
231 pread(fd, c_buf + bytes_read, count - bytes_read, offset + bytes_read); in PReadAll()
236 bytes_read += rc; in PReadAll()
238 *out_bytes_read = bytes_read; in PReadAll()
250 ssize_t bytes_read = 0; in PReadAll() local
251 while (bytes_read < static_cast<ssize_t>(count)) { in PReadAll()
252 ssize_t rc = fd->Read(c_buf + bytes_read, count - bytes_read); in PReadAll()
257 bytes_read += rc; in PReadAll()
259 *out_bytes_read = bytes_read; in PReadAll()
892 ssize_t bytes_read = 0; in ReadExtents() local
900 TEST_AND_RETURN_FALSE(bytes_read + bytes <= out_data_size); in ReadExtents()
902 &data[bytes_read], in ReadExtents()
907 bytes_read += bytes_read_this_iteration; in ReadExtents()
909 TEST_AND_RETURN_FALSE(out_data_size == bytes_read); in ReadExtents()