Searched refs:bytes_read (Results 51 - 75 of 426) sorted by relevance

1234567891011>>

/external/chromium_org/ipc/
H A Dipc_channel_nacl.cc47 int bytes_read = imc_recvmsg(pipe, &msg, 0); local
49 if (bytes_read <= 0) {
56 DCHECK(bytes_read);
58 contents->data.resize(bytes_read);
318 int* bytes_read) {
319 *bytes_read = 0;
324 while (!read_queue_.empty() && *bytes_read < buffer_len) {
326 size_t bytes_to_read = buffer_len - *bytes_read;
329 std::copy(vec->begin(), vec->end(), buffer + *bytes_read);
330 *bytes_read
315 ReadData( char* buffer, int buffer_len, int* bytes_read) argument
[all...]
/external/chromium_org/media/formats/mpeg/
H A Dadts_stream_parser.cc68 const int bytes_read = reader.bits_read() / 8; local
69 if (sync != 0xfff || layer != 0 || frame_length < bytes_read ||
96 return bytes_read;
/external/chromium_org/net/url_request/
H A Durl_request_simple_job.cc47 int* bytes_read) {
48 DCHECK(bytes_read);
54 *bytes_read = buf_size;
46 ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) argument
H A Durl_request_file_dir_job.h34 int* bytes_read) OVERRIDE;
54 bool FillReadBuffer(char *buf, int buf_size, int *bytes_read);
/external/chromium_org/third_party/webrtc/modules/audio_device/android/
H A Dlow_latency_event_posix.cc95 ssize_t bytes_read = HANDLE_EINTR(read(handles_[kReadHandle], buffer, bytes)); local
96 if (bytes_read == 0) {
100 } else if (bytes_read == static_cast<ssize_t>(bytes)) {
/external/chromium_org/base/debug/
H A Dproc_maps_linux.cc64 ssize_t bytes_read = HANDLE_EINTR(read(fd.get(), buffer, kReadSize)); local
65 if (bytes_read < 0) {
72 proc_maps->resize(pos + bytes_read);
74 if (bytes_read == 0)
/external/chromium_org/chrome/installer/util/
H A Dlogging_installer.cc53 int bytes_read = old_log_file.Read(offset, local
56 if (bytes_read > 0 &&
57 (bytes_read == base::WriteFile(log_file, &old_log_data[0],
58 bytes_read) ||
/external/chromium_org/content/browser/loader/
H A Dcertificate_resource_handler.cc76 bool CertificateResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { argument
77 if (!bytes_read)
82 content_length_ += bytes_read;
89 buffer_.push_back(std::make_pair(buffer, bytes_read));
/external/chromium_org/net/base/
H A Dnss_memio.h72 * If bytes_read is 0, causes EOF to be reported to
74 * If bytes_read is < 0, it is treated as an NSPR error code.
79 void memio_PutReadResult(memio_Private *secret, int bytes_read);
H A Dfile_stream_context_win.cc67 DWORD bytes_read; local
69 &bytes_read, &io_context_.overlapped)) {
133 DWORD bytes_read,
154 result = bytes_read;
155 IncrementOffset(&io_context_.overlapped, bytes_read);
131 OnIOCompleted( base::MessageLoopForIO::IOContext* context, DWORD bytes_read, DWORD error) argument
/external/chromium_org/base/files/
H A Dfile_posix.cc299 int bytes_read = 0; local
302 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read,
303 size - bytes_read, offset + bytes_read));
307 bytes_read += rv;
308 } while (bytes_read < size);
310 return bytes_read ? bytes_read : rv;
319 int bytes_read = 0; local
322 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, siz
[all...]
H A Dfile_unittest.cc168 int bytes_read = file.Read(kTestDataSize, data_read_1, kTestDataSize); local
169 EXPECT_EQ(0, bytes_read);
173 bytes_read = file.Read(kPartialReadOffset, data_read_1, kTestDataSize);
174 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read);
175 for (int i = 0; i < bytes_read; i++)
179 bytes_read = file.Read(0, data_read_1, 0);
180 EXPECT_EQ(0, bytes_read);
183 bytes_read = file.Read(0, data_read_1, kTestDataSize);
184 EXPECT_EQ(kTestDataSize, bytes_read);
185 for (int i = 0; i < bytes_read;
256 int bytes_read = file.Read(0, data_read_1, local
292 int bytes_read = file.Read(0, data_read, static_cast<int>(file_size)); local
[all...]
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
H A Dfuse_fs_test.cc272 int bytes_read = 0; local
274 ASSERT_EQ(0, node->Read(attr, &buffer[0], sizeof(buffer), &bytes_read));
275 ASSERT_EQ(strlen(hello_world), bytes_read); local
280 ASSERT_EQ(0, node->Read(attr, &buffer[0], sizeof(buffer), &bytes_read));
281 ASSERT_EQ(7, bytes_read);
308 int bytes_read = 0; local
309 ASSERT_EQ(0, node->Read(attr, &buffer[0], sizeof(buffer), &bytes_read));
310 ASSERT_EQ(strlen(message), bytes_read); local
343 int bytes_read; local
346 ASSERT_EQ(0, root->GetDents(0, &entries[0], sizeof(entries), &bytes_read));
[all...]
/external/chromium_org/mojo/services/network/
H A Durl_loader_impl.cc86 uint32_t bytes_read = variable
89 if (bytes_read > 0) {
90 ReadDataRaw(pipe_.get(), buf->data(), &bytes_read,
94 offset_ += bytes_read;
95 return bytes_read;
290 int bytes_read) {
294 DidRead(static_cast<uint32_t>(bytes_read), false);
353 int bytes_read; local
354 url_request_->Read(buf.get(), static_cast<int>(num_bytes), &bytes_read);
361 } else if (url_request_->status().is_success() && bytes_read >
289 OnReadCompleted(net::URLRequest* url_request, int bytes_read) argument
[all...]
/external/chromium_org/base/
H A Dasync_socket_io_handler_win.cc47 DWORD bytes_read = 0; local
48 BOOL ok = ::ReadFile(socket_, buffer, buffer_len, &bytes_read,
/external/chromium_org/base/test/
H A Dtest_file_util_win.cc159 DWORD bytes_read, bytes_written; local
161 bytes_read = 0;
162 ::ReadFile(file_handle.Get(), buffer, kOneMB, &bytes_read, NULL);
163 if (bytes_read == 0)
166 if (bytes_read < kOneMB) {
171 ZeroMemory(buffer + bytes_read, kOneMB - bytes_read);
188 total_bytes += bytes_read;
/external/chromium_org/third_party/libvpx/source/libvpx/
H A Divfdec.c73 size_t *bytes_read, size_t *buffer_size) {
107 *bytes_read = frame_size;
72 ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, size_t *buffer_size) argument
/external/chromium_org/third_party/sfntly/cpp/src/sample/subsetter/
H A Dsubset_util.cc55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); local
56 UNREFERENCED_PARAMETER(bytes_read);
/external/libvpx/libvpx/
H A Divfdec.c73 size_t *bytes_read, size_t *buffer_size) {
107 *bytes_read = frame_size;
72 ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, size_t *buffer_size) argument
/external/sfntly/cpp/src/sample/subsetter/
H A Dsubset_util.cc55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); local
56 UNREFERENCED_PARAMETER(bytes_read);
/external/chromium_org/storage/browser/blob/
H A Dblob_url_request_job.cc90 int* bytes_read) {
92 DCHECK(bytes_read);
97 *bytes_read = 0;
107 *bytes_read = 0;
115 return ReadLoop(bytes_read);
413 int bytes_read = BytesReadCompleted(); local
414 NotifyReadComplete(bytes_read);
419 int bytes_read = 0; local
420 if (ReadLoop(&bytes_read))
421 NotifyReadComplete(bytes_read);
88 ReadRawData(net::IOBuffer* dest, int dest_size, int* bytes_read) argument
433 int bytes_read = read_buf_->BytesConsumed(); local
453 ReadLoop(int* bytes_read) argument
[all...]
/external/lldb/source/Host/common/
H A DFile.cpp475 ssize_t bytes_read = -1; local
480 bytes_read = ::read (m_descriptor, buf, num_bytes);
481 } while (bytes_read < 0 && errno == EINTR);
483 if (bytes_read == -1)
489 num_bytes = bytes_read;
493 bytes_read = ::fread (buf, 1, num_bytes, m_stream);
495 if (bytes_read == 0)
504 num_bytes = bytes_read;
566 ssize_t bytes_read = -1; local
569 bytes_read
[all...]
/external/chromium_org/device/serial/
H A Dserial_io_handler.cc113 void SerialIoHandler::ReadCompleted(int bytes_read, argument
119 pending_read_buffer->Done(bytes_read);
121 pending_read_buffer->DoneWithError(bytes_read, error);
168 void SerialIoHandler::QueueReadCompleted(int bytes_read, argument
172 base::Bind(&SerialIoHandler::ReadCompleted, this, bytes_read, error));
/external/chromium_org/extensions/browser/api/sockets_udp/
H A Dudp_socket_event_dispatcher.cc100 int bytes_read,
106 // If |bytes_read| == 0, the message contained no data.
107 // If |bytes_read| < 0, there was a network error, and |bytes_read| is a value
110 if (bytes_read >= 0) {
114 receive_info.data = std::string(io_buffer->data(), bytes_read);
129 } else if (bytes_read == net::ERR_IO_PENDING) {
137 receive_error_info.result_code = bytes_read;
98 ReceiveCallback( const ReceiveParams& params, int bytes_read, scoped_refptr<net::IOBuffer> io_buffer, const std::string& address, int port) argument
/external/chromium_org/net/test/spawned_test_server/
H A Dlocal_test_server_win.cc60 DWORD bytes_read = 0; local
61 while (bytes_read < bytes_max) {
63 if (!ReadFile(read_fd, buffer + bytes_read, bytes_max - bytes_read,
72 bytes_read += num_bytes;

Completed in 738 milliseconds

1234567891011>>