Home | History | Annotate | Download | only in unix_file

Lines Matching refs:byte_count

76 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
77 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset));
92 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) {
93 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset));
109 bool FdFile::ReadFully(void* buffer, int64_t byte_count) {
111 while (byte_count > 0) {
112 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count));
116 byte_count -= bytes_read; // Reduce the number of remaining bytes.
122 bool FdFile::WriteFully(const void* buffer, int64_t byte_count) {
124 while (byte_count > 0) {
125 int bytes_read = TEMP_FAILURE_RETRY(write(fd_, ptr, byte_count));
129 byte_count -= bytes_read; // Reduce the number of remaining bytes.