Searched refs:bytes_to_read (Results 1 - 25 of 78) sorted by relevance

1234

/external/chromium_org/chrome/app/
H A Dimage_pre_reader_win.cc53 // A helper function to read the next |bytes_to_read| bytes from the file
55 bool ReadNextBytes(HANDLE file_handle, void* buffer, size_t bytes_to_read) { argument
58 DCHECK(bytes_to_read > 0);
61 return bytes_to_read <= std::numeric_limits<DWORD>::max() &&
64 static_cast<DWORD>(bytes_to_read),
67 bytes_read == bytes_to_read;
86 size_t bytes_to_read = desired_length - current_length;
90 bytes_to_read);
139 size_t bytes_to_read = GetPercentageOfSectionLength(section, percentage); local
140 if (bytes_to_read
[all...]
/external/chromium_org/net/tools/flip_server/
H A Dring_buffer.cc125 int bytes_to_read = size;
127 if (bytes_used < bytes_to_read) {
128 bytes_to_read = bytes_used;
130 char* end = bytes + bytes_to_read;
140 this->bytes_used_ -= bytes_to_read;
141 return bytes_to_read;
/external/chromium_org/ppapi/c/
H A Dppb_url_loader.h172 * @param[in] bytes_to_read The number of bytes to read.
183 int32_t bytes_to_read,
H A Dppb_tcp_socket.h174 * must be at least as large as <code>bytes_to_read</code>.
175 * @param[in] bytes_to_read The number of bytes to read.
185 int32_t bytes_to_read,
288 int32_t bytes_to_read,
H A Dppb_file_io.h183 * @param[in] bytes_to_read The number of bytes to read from
199 int32_t bytes_to_read,
319 int32_t bytes_to_read,
/external/chromium_org/ppapi/cpp/private/
H A Dtcp_socket_private.h43 int32_t bytes_to_read,
/external/chromium_org/ppapi/cpp/
H A Durl_loader.h128 /// @param[in] bytes_to_read The number of bytes to read.
137 int32_t bytes_to_read,
H A Durl_loader.cc82 int32_t bytes_to_read,
87 pp_resource(), buffer, bytes_to_read, cc.pp_completion_callback());
81 ReadResponseBody(void* buffer, int32_t bytes_to_read, const CompletionCallback& cc) argument
H A Dtcp_socket.cc111 int32_t bytes_to_read,
115 pp_resource(), buffer, bytes_to_read,
120 pp_resource(), buffer, bytes_to_read,
110 Read(char* buffer, int32_t bytes_to_read, const CompletionCallback& callback) argument
/external/chromium_org/ppapi/thunk/
H A Dppb_url_loader_api.h42 int32_t bytes_to_read,
H A Dppb_url_loader_thunk.cc92 int32_t bytes_to_read,
99 bytes_to_read,
90 ReadResponseBody(PP_Resource loader, void* buffer, int32_t bytes_to_read, struct PP_CompletionCallback callback) argument
/external/chromium_org/android_webview/browser/net/
H A Dandroid_stream_reader_url_request_job_unittest.cc317 const int bytes_to_read = bytes_available - offset; local
324 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
325 .WillOnce(Return(bytes_to_read/2));
326 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
327 .WillOnce(Return(bytes_to_read/2));
328 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
340 EXPECT_EQ(bytes_to_read, url_request_delegate_.bytes_received());
350 const int bytes_to_read = bytes_available - offset; local
357 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
359 EXPECT_CALL(*stream_reader, ReadRawData(NotNull(), Ge(bytes_to_read)))
[all...]
/external/chromium_org/storage/browser/blob/
H A Dblob_url_request_job.cc321 int bytes_to_read = ComputeBytesToRead(); local
324 if (bytes_to_read == 0) {
332 return ReadBytesItem(item, bytes_to_read);
335 bytes_to_read);
368 int bytes_to_read) {
369 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read);
373 bytes_to_read);
375 AdvanceBytesRead(bytes_to_read);
380 int bytes_to_read) {
381 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read);
367 ReadBytesItem(const BlobData::Item& item, int bytes_to_read) argument
379 ReadFileItem(FileStreamReader* reader, int bytes_to_read) argument
[all...]
H A Dblob_url_request_job.h76 bool ReadBytesItem(const BlobData::Item& item, int bytes_to_read);
77 bool ReadFileItem(FileStreamReader* reader, int bytes_to_read);
/external/chromium_org/ppapi/proxy/
H A Dtcp_socket_private_resource.cc80 int32_t bytes_to_read,
82 return ReadImpl(buffer, bytes_to_read, callback);
78 Read( char* buffer, int32_t bytes_to_read, scoped_refptr<TrackedCallback> callback) argument
H A Dtcp_socket_resource.cc93 int32_t bytes_to_read,
95 return ReadImpl(buffer, bytes_to_read, callback);
92 Read(char* buffer, int32_t bytes_to_read, scoped_refptr<TrackedCallback> callback) argument
H A Dfile_io_resource.cc64 int32_t bytes_to_read)
67 bytes_to_read_(bytes_to_read) {
240 int32_t bytes_to_read,
250 return ReadValidated(offset, bytes_to_read, output_adapter, callback);
444 int32_t bytes_to_read,
447 if (bytes_to_read < 0)
454 bytes_to_read = std::min(bytes_to_read, kMaxReadWriteSize);
457 array_output.GetDataBuffer(array_output.user_data, bytes_to_read, 1));
465 result = file_holder_->file()->Read(offset, buffer, bytes_to_read);
62 ReadOp(scoped_refptr<FileHolder> file_holder, int64_t offset, int32_t bytes_to_read) argument
238 Read(int64_t offset, char* buffer, int32_t bytes_to_read, scoped_refptr<TrackedCallback> callback) argument
443 ReadValidated(int64_t offset, int32_t bytes_to_read, const PP_ArrayOutput& array_output, scoped_refptr<TrackedCallback> callback) argument
[all...]
/external/chromium_org/device/serial/
H A Ddata_sink_unittest.cc79 uint32_t bytes_to_read,
81 DCHECK(bytes_to_read <= static_cast<uint32_t>(expected_data.size()));
88 if (bytes_to_read <= read_buffer_->GetSize()) {
90 read_buffer_->DoneWithError(bytes_to_read, error);
92 read_buffer_->Done(bytes_to_read);
96 bytes_to_read -= read_buffer_->GetSize();
105 data.size() >= bytes_to_read) {
78 ExpectData(const base::StringPiece& expected_data, uint32_t bytes_to_read, int32_t error) argument
/external/chromium_org/net/quic/
H A Dquic_data_stream.cc71 size_t bytes_to_read = min(iov[iov_index].iov_len, local
75 decompressed_headers_.data() + bytes_consumed, bytes_to_read);
76 bytes_consumed += bytes_to_read;
/external/chromium_org/ppapi/c/private/
H A Dppb_tcp_socket_private.h130 * as |bytes_to_read|. May perform a partial read. Returns the number of bytes
133 * This method won't return more than 1 megabyte, so if |bytes_to_read|
139 int32_t bytes_to_read,
195 int32_t bytes_to_read,
228 int32_t bytes_to_read,
/external/chromium_org/base/files/
H A Dfile_proxy.cc176 ReadHelper(FileProxy* proxy, File file, int bytes_to_read) argument
178 buffer_(new char[bytes_to_read]),
179 bytes_to_read_(bytes_to_read),
300 int bytes_to_read,
303 if (bytes_to_read < 0)
306 ReadHelper* helper = new ReadHelper(this, file_.Pass(), bytes_to_read);
299 Read(int64 offset, int bytes_to_read, const ReadCallback& callback) argument
/external/chromium_org/ppapi/api/
H A Dppb_url_loader.idl173 * @param[in] bytes_to_read The number of bytes to read.
185 [in] int32_t bytes_to_read,
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/
H A Dfont_input_stream.cc83 int32_t bytes_to_read = local
86 int32_t bytes_read = stream_->Read(b, offset, bytes_to_read);
/external/sfntly/cpp/src/sfntly/data/
H A Dfont_input_stream.cc83 int32_t bytes_to_read = local
86 int32_t bytes_read = stream_->Read(b, offset, bytes_to_read);
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/httpfs/
H A Dhttp_fs_node.cc517 int bytes_to_read = attr.offs - read_start; local
519 error = ReadResponseToTemp(loader, bytes_to_read, &bytes_read);
524 if (bytes_read < bytes_to_read) {
630 int bytes_to_read = std::min(bytes_left, buffer_len_); local
633 loader, buffer_, bytes_to_read, &bytes_read);
657 int bytes_to_read = count; local
658 while (bytes_to_read > 0) {
662 bytes_to_read,
668 *out_bytes = count - bytes_to_read;
675 assert(bytes_read <= bytes_to_read);
[all...]

Completed in 470 milliseconds

1234