Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for total_read (0.31 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

        if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize;
    
        rc = read(src_fd, buffer.get(), chunk);
        if (rc < 0) return -1;
    
        int total_write = 0;
        int total_read = rc;
        while (total_write < total_read && rc > 0) {
          rc = write(dst_fd, buffer.get() + total_write, chunk - total_write);
          if (rc < 0) return -1;
    
          total_write += rc;
          bytes_transferred += rc;
          offset += rc;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
Back to top