Searched refs:bytes_read (Results 1 - 25 of 146) sorted by relevance

123456

/external/chromium/net/url_request/
H A Durl_request_job.cc60 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { argument
65 DCHECK(bytes_read);
69 *bytes_read = 0;
73 rv = ReadRawDataHelper(buf, buf_size, bytes_read);
80 if (ReadFilteredData(bytes_read)) {
86 if (rv && *bytes_read == 0)
291 void URLRequestJob::NotifyReadComplete(int bytes_read) { argument
302 OnRawReadComplete(bytes_read);
315 prefilter_bytes_read_ += bytes_read;
318 FilteredDataRead(bytes_read);
415 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
423 FilteredDataRead(int bytes_read) argument
428 ReadFilteredData(int* bytes_read) argument
547 ReadRawDataForFilter(int* bytes_read) argument
566 ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read) argument
594 OnRawReadComplete(int bytes_read) argument
602 RecordBytesRead(int bytes_read) argument
[all...]
H A Durl_request_simple_job.cc41 int* bytes_read) {
42 DCHECK(bytes_read);
48 *bytes_read = buf_size;
40 ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) argument
H A Durl_request_file_dir_job.cc79 int *bytes_read) {
80 DCHECK(bytes_read);
81 *bytes_read = 0;
86 if (FillReadBuffer(buf->data(), buf_size, bytes_read))
187 int bytes_read; local
189 &bytes_read)) {
196 NotifyReadComplete(bytes_read);
206 int *bytes_read) {
207 DCHECK(bytes_read);
209 *bytes_read
78 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
205 FillReadBuffer(char *buf, int buf_size, int *bytes_read) argument
[all...]
H A Durl_request_job.h85 bool Read(IOBuffer* buf, int buf_size, int* bytes_read);
190 void NotifyReadComplete(int bytes_read);
216 // the data, and bytes_read will receive the number of bytes read.
217 // If returning true, and bytes_read is returned as 0, there is no
224 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
227 void FilteredDataRead(int bytes_read);
233 bool ReadFilteredData(int *bytes_read);
270 bool ReadRawDataForFilter(int *bytes_read);
274 bool ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read);
281 // Called after every raw read. If |bytes_read| i
[all...]
H A Durl_request_test_util.cc200 int bytes_read = 0; local
201 if (request->Read(buf_, kBufferSize, &bytes_read))
202 OnReadCompleted(request, bytes_read);
208 void TestDelegate::OnReadCompleted(net::URLRequest* request, int bytes_read) { argument
218 if (bytes_read >= 0) {
220 received_bytes_count_ += bytes_read;
223 data_received_.append(buf_->data(), bytes_read);
227 if (request->status().is_success() && bytes_read > 0) {
228 bytes_read = 0;
229 while (request->Read(buf_, kBufferSize, &bytes_read)) {
280 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
[all...]
H A Durl_request_file_dir_job.h32 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
52 bool FillReadBuffer(char *buf, int buf_size, int *bytes_read);
/external/linux-tools-perf/scripts/perl/
H A Drwtop.pl43 $reads{$common_pid}{bytes_read} += $ret;
45 if (!defined ($reads{$common_pid}{bytes_read})) {
46 $reads{$common_pid}{bytes_read} = 0;
128 "# reads", "bytes_req", "bytes_read");
132 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
133 ($reads{$a}{bytes_read} || 0) } keys %reads) {
137 my $bytes_read = $reads{$pid}{bytes_read} || 0;
140 $total_reads, $bytes_requested, $bytes_read);
H A Drw-by-pid.pl31 $reads{$common_pid}{bytes_read} += $ret;
33 if (!defined ($reads{$common_pid}{bytes_read})) {
34 $reads{$common_pid}{bytes_read} = 0;
78 "# reads", "bytes_requested", "bytes_read");
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
83 ($reads{$a}{bytes_read} || 0) } keys %reads) {
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
90 $total_reads, $bytes_requested, $bytes_read);
/external/chromium/chrome/browser/
H A Dcrash_upload_list_win.cc19 DWORD bytes_read; local
27 &bytes_read,
33 while (record_offset < bytes_read) {
34 DCHECK(record_offset + sizeof(EVENTLOGRECORD) <= bytes_read);
36 DCHECK(record_offset + record->Length <= bytes_read);
H A Dplugin_download_helper.cc78 int bytes_read = 0; local
80 &bytes_read)) {
86 } else if (bytes_read == 0) {
89 OnReadCompleted(request, bytes_read);
95 int bytes_read) {
98 if (bytes_read == 0) {
103 int request_bytes_read = bytes_read;
94 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
H A Dbrowser_main_posix.cc118 size_t bytes_read = 0; local
123 reinterpret_cast<char*>(&signal) + bytes_read,
124 sizeof(signal) - bytes_read));
134 bytes_read += ret;
135 } while (bytes_read < sizeof(signal));
/external/chromium/sdch/open-vcdiff/src/
H A Dvcdiff_main.cc137 // into input_buffer_. If successful, returns true and sets *bytes_read
140 bool ReadInput(size_t* bytes_read);
311 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) { argument
313 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_);
346 size_t bytes_read = fread(&compare_buffer_[0], local
355 if (bytes_read < output_size) {
360 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) {
410 size_t bytes_read = 0; local
411 if (!WriteOutput(output) || !ReadInput(&bytes_read)) {
416 if (bytes_read >
467 size_t bytes_read = 0; local
531 size_t bytes_read = 0; local
[all...]
/external/chromium/base/test/
H A Dtest_file_util_win.cc65 DWORD bytes_read, bytes_written; local
67 bytes_read = 0;
68 ::ReadFile(file_handle, buffer, kOneMB, &bytes_read, NULL);
69 if (bytes_read == 0)
72 if (bytes_read < kOneMB) {
77 ZeroMemory(buffer + bytes_read, kOneMB - bytes_read);
94 total_bytes += bytes_read;
/external/chromium/net/base/
H A Dnetwork_delegate.cc35 void NetworkDelegate::NotifyReadCompleted(URLRequest* request, int bytes_read) { argument
38 OnReadCompleted(request, bytes_read);
H A Dnss_memio.h61 * If bytes_read is 0, causes EOF to be reported to
63 * If bytes_read is < 0, it is treated as an NSPR error code.
68 void memio_PutReadResult(memio_Private *secret, int bytes_read);
H A Dfile_stream_win.cc68 DWORD bytes_read, DWORD error);
98 MessageLoopForIO::IOContext* context, DWORD bytes_read, DWORD error) {
107 int result = static_cast<int>(bytes_read);
111 if (bytes_read)
112 IncrementOffset(&context->overlapped, bytes_read);
239 DWORD bytes_read; local
240 if (!ReadFile(file_, buf, buf_len, &bytes_read, overlapped)) {
255 rv = static_cast<int>(bytes_read);
265 int bytes_read = Read(buf, to_read, NULL); local
266 if (bytes_read <
97 OnIOCompleted( MessageLoopForIO::IOContext* context, DWORD bytes_read, DWORD error) argument
[all...]
H A Dnetwork_delegate.h45 void NotifyReadCompleted(URLRequest* request, int bytes_read);
82 virtual void OnReadCompleted(URLRequest* request, int bytes_read) = 0;
/external/chromium/base/
H A Dplatform_file_unittest.cc17 int bytes_read; local
19 bytes_read = base::ReadPlatformFile(
23 // If we reached EOF, bytes_read will be 0.
24 if (bytes_read == 0)
27 if ((bytes_read < 0) || (bytes_read > size - total_bytes_read))
30 total_bytes_read += bytes_read;
155 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize); local
156 EXPECT_EQ(0, bytes_read);
160 bytes_read
229 int bytes_read = ReadFully(file, 0, data_read, static_cast<int>(file_size)); local
[all...]
/external/dbus/dbus/
H A Ddbus-file-win.c53 DWORD bytes_read; local
71 result = ReadFile (hnd, data, count, &bytes_read, NULL);
81 if (bytes_read)
84 _dbus_string_set_length (buffer, start + bytes_read);
87 if (bytes_read > 0)
88 _dbus_verbose_bytes_of_string (buffer, start, bytes_read);
92 return bytes_read;
166 int bytes_read; local
170 bytes_read = _dbus_file_read (hnd, str, fsize - total, error);
171 if (bytes_read <
[all...]
/external/v8/test/cctest/
H A Dtest-sockets.cc64 int bytes_read = 0; local
65 while (bytes_read < data_size_) {
66 bytes_read += client_->Receive(data_ + bytes_read, data_size_ - bytes_read);
/external/flac/libFLAC/
H A Dogg_helper.c47 size_t bytes_read = bytes; local
48 switch(read_callback(encoder, buffer, &bytes_read, client_data)) {
50 bytes -= bytes_read;
51 buffer += bytes_read;
54 if(bytes_read == 0) {
58 bytes -= bytes_read;
59 buffer += bytes_read;
/external/chromium/net/socket/
H A Dtransport_client_socket_unittest.cc136 uint32 bytes_read = 0; local
138 while (bytes_read < bytes_to_read) {
146 bytes_read += rv;
149 return static_cast<int>(bytes_read);
204 uint32 bytes_read; local
221 bytes_read = DrainClientSocket(buf, 1, 1, &callback);
222 ASSERT_EQ(bytes_read, 1u);
229 bytes_read = DrainClientSocket(buf, 4096, arraysize(kServerReply) - 2,
231 ASSERT_EQ(bytes_read, arraysize(kServerReply) - 2);
242 bytes_read
271 uint32 bytes_read = DrainClientSocket(buf, 4096, arraysize(kServerReply) - 1, local
296 uint32 bytes_read = 0; local
[all...]
/external/chromium/chrome/browser/net/
H A Dview_http_cache_job_factory.cc39 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) { argument
40 return core_->ReadRawData(buf, buf_size, bytes_read);
62 bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
160 int* bytes_read) {
161 DCHECK(bytes_read);
167 *bytes_read = buf_size;
158 ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) argument
H A Durl_request_slow_download_job.cc82 int *bytes_read) {
85 *bytes_read = 0;
94 *bytes_read = kSecondDownloadSize;
104 *bytes_read = send_size;
112 *bytes_read = 0;
81 ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) argument
/external/chromium/chrome/browser/safe_browsing/
H A Dbloom_filter.cc102 int bytes_read = filter.Read(reinterpret_cast<char*>(&file_version), local
104 if (bytes_read != sizeof(file_version) || file_version != kFileVersion) {
111 bytes_read = filter.Read(reinterpret_cast<char*>(&num_keys),
113 if (bytes_read != sizeof(num_keys) ||
122 bytes_read = filter.Read(reinterpret_cast<char*>(&key), sizeof(key), NULL);
123 if (bytes_read != sizeof(key)) {
142 bytes_read = filter.Read(data.get(), byte_size, NULL);
143 if (bytes_read < byte_size) {
146 } else if (bytes_read != byte_size) {

Completed in 1400 milliseconds

123456