HomeSort by relevance Sort by last modified time
    Searched refs:bytes_read (Results 1 - 25 of 176) sorted by null

1 2 3 4 5 6 7 8

  /external/chromium/net/url_request/
url_request_job.cc 60 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) {
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) {
302 OnRawReadComplete(bytes_read);
315 prefilter_bytes_read_ += bytes_read;
318 FilteredDataRead(bytes_read);
    [all...]
url_request_job.h 85 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| is > 0, this indicate
    [all...]
url_request_simple_job.cc 41 int* bytes_read) {
42 DCHECK(bytes_read);
48 *bytes_read = buf_size;
url_request_file_dir_job.cc 79 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 = 0
    [all...]
url_request_test_util.cc 200 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) {
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)) {
    [all...]
url_request_file_dir_job.h 32 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
52 bool FillReadBuffer(char *buf, int buf_size, int *bytes_read);
url_request_simple_job.h 23 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
  /external/bluetooth/glib/gio/tests/
memory-input-stream.c 35 gsize bytes_read, pos, len, chunk_size; local
53 bytes_read = g_input_stream_read (stream, buffer, chunk_size, NULL, &error);
55 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos));
56 g_assert (strncmp (buffer, result + pos, bytes_read) == 0);
58 pos += bytes_read;
  /development/host/windows/usb/api/
adb_endpoint_object.cpp 52 ULONG* bytes_read,
58 bytes_read,
78 ULONG* bytes_read,
83 bytes_read,
adb_endpoint_object.h 117 @param[out] bytes_read Number of bytes read. Can be NULL.
129 ULONG* bytes_read,
157 @param[out] bytes_read Number of bytes read. Can be NULL.
166 ULONG* bytes_read,
  /external/bluetooth/glib/glib/
gconvert.h 69 gsize *bytes_read,
75 gsize *bytes_read,
83 gsize *bytes_read,
92 gsize *bytes_read,
97 gsize *bytes_read,
113 gsize *bytes_read,
118 gsize *bytes_read,
  /external/chromium/chrome/browser/
crash_upload_list_win.cc 19 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);
plugin_download_helper.cc 78 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;
  /external/chromium/sdch/open-vcdiff/src/
vcdiff_main.cc 137 // 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) {
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 > 0)
467 size_t bytes_read = 0; local
531 size_t bytes_read = 0; local
    [all...]
  /external/chromium/base/test/
test_file_util_win.cc 65 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/
network_delegate.cc 35 void NetworkDelegate::NotifyReadCompleted(URLRequest* request, int bytes_read) {
38 OnReadCompleted(request, bytes_read);
network_delegate.h 45 void NotifyReadCompleted(URLRequest* request, int bytes_read);
82 virtual void OnReadCompleted(URLRequest* request, int bytes_read) = 0;
nss_memio.h 61 * 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);
file_stream_win.cc 68 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 <= 0)
    [all...]
  /external/chromium/base/
platform_file_unittest.cc 17 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 = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize)
229 int bytes_read = ReadFully(file, 0, data_read, static_cast<int>(file_size)); local
    [all...]
  /external/dbus/dbus/
dbus-file-win.c 53 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 <= 0
    [all...]
  /external/flac/libFLAC/
ogg_helper.c 47 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/
transport_client_socket_unittest.cc 136 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 = DrainClientSocket(buf, 1, 1, &callback)
271 uint32 bytes_read = DrainClientSocket(buf, 4096, arraysize(kServerReply) - 1, local
296 uint32 bytes_read = 0; local
    [all...]
  /external/chromium/chrome/browser/net/
view_http_cache_job_factory.cc 39 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) {
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;
  /external/chromium/chrome/browser/safe_browsing/
bloom_filter.cc 102 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 807 milliseconds

1 2 3 4 5 6 7 8