Lines Matching refs:bytes_read
213 int bytes_read = 0; in Read() local
216 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, in Read()
217 size - bytes_read, offset + bytes_read)); in Read()
221 bytes_read += rv; in Read()
222 } while (bytes_read < size); in Read()
224 return bytes_read ? bytes_read : rv; in Read()
235 int bytes_read = 0; in ReadAtCurrentPos() local
238 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos()
242 bytes_read += rv; in ReadAtCurrentPos()
243 } while (bytes_read < size); in ReadAtCurrentPos()
245 return bytes_read ? bytes_read : rv; in ReadAtCurrentPos()