Lines Matching refs:n_read
2899 gssize n_read; in copy_stream_with_progress() local
2944 n_read = g_input_stream_read (in, buffer, STREAM_BUFFER_SIZE, cancellable, error); in copy_stream_with_progress()
2945 if (n_read == -1) in copy_stream_with_progress()
2951 if (n_read == 0) in copy_stream_with_progress()
2954 current_size += n_read; in copy_stream_with_progress()
2956 res = g_output_stream_write_all (out, buffer, n_read, &n_written, cancellable, error); in copy_stream_with_progress()
3068 long n_read; in splice_stream_with_progress() local
3074 if (!do_splice (fd_in, &offset_in, buffer[1], NULL, buffer_size, &n_read, error)) in splice_stream_with_progress()
3077 if (n_read == 0) in splice_stream_with_progress()
3083 while (n_read > 0) in splice_stream_with_progress()
3088 if (!do_splice (buffer[0], NULL, fd_out, &offset_out, n_read, &n_written, error)) in splice_stream_with_progress()
3091 n_read -= n_written; in splice_stream_with_progress()