Lines Matching refs:bytes_read
126 size_t bytes_read = 0; in ReadAll() local
128 while (bytes_read < count) { in ReadAll()
129 ssize_t rc = HANDLE_EINTR(read(fd, c_buf + bytes_read, count - bytes_read)); in ReadAll()
135 *out_bytes_read = bytes_read; in ReadAll()
145 bytes_read += rc; in ReadAll()
148 *out_bytes_read = bytes_read; in ReadAll()
208 ssize_t bytes_read = 0; in PReadAll() local
209 while (bytes_read < static_cast<ssize_t>(count)) { in PReadAll()
211 pread(fd, c_buf + bytes_read, count - bytes_read, offset + bytes_read); in PReadAll()
216 bytes_read += rc; in PReadAll()
218 *out_bytes_read = bytes_read; in PReadAll()
230 ssize_t bytes_read = 0; in ReadAll() local
231 while (bytes_read < static_cast<ssize_t>(count)) { in ReadAll()
232 ssize_t rc = fd->Read(c_buf + bytes_read, count - bytes_read); in ReadAll()
237 bytes_read += rc; in ReadAll()
239 *out_bytes_read = bytes_read; in ReadAll()
1102 ssize_t bytes_read = 0; in ReadExtents() local
1107 TEST_LE(bytes_read + bytes, out_data_size); in ReadExtents()
1109 &data[bytes_read], in ReadExtents()
1114 bytes_read += bytes_read_this_iteration; in ReadExtents()
1116 TEST_AND_RETURN_FALSE(out_data_size == bytes_read); in ReadExtents()