Home
last modified time | relevance | path

Searched refs:buf_len_ (Results 1 – 24 of 24) sorted by relevance

/external/chromium/net/base/
Dupload_data_stream.cc32 DCHECK_LE(num_bytes, buf_len_); in MarkConsumedAndFillBuffer()
36 buf_len_ -= num_bytes; in MarkConsumedAndFillBuffer()
37 if (buf_len_) in MarkConsumedAndFillBuffer()
38 memmove(buf_->data(), buf_->data() + num_bytes, buf_len_); in MarkConsumedAndFillBuffer()
49 buf_len_(0), in UploadDataStream()
61 while (buf_len_ < kBufSize && next_element_ < elements.size()) { in FillBuf()
66 size_t size_remaining = kBufSize - buf_len_; in FillBuf()
78 memcpy(buf_->data() + buf_len_, &d[next_element_offset_], bytes_copied); in FillBuf()
79 buf_len_ += bytes_copied; in FillBuf()
119 rv = next_element_java_stream_->Read(buf_->data() + buf_len_, count); in FillBuf()
[all …]
Dupload_data_stream.h32 size_t buf_len() const { return buf_len_; } in buf_len()
92 size_t buf_len_; variable
/external/chromium/net/url_request/
Dview_cache_helper.cc80 buf_len_(0), in ViewCacheHelper()
280 buf_len_ = entry_->GetDataSize(0); in DoReadResponse()
282 if (!buf_len_) in DoReadResponse()
283 return buf_len_; in DoReadResponse()
285 buf_ = new IOBuffer(buf_len_); in DoReadResponse()
286 return entry_->ReadData(0, 0, buf_, buf_len_, entry_callback_); in DoReadResponse()
291 if (result && result == buf_len_) { in DoReadResponseComplete()
294 if (HttpCache::ParseResponseInfo(buf_->data(), buf_len_, &response, in DoReadResponseComplete()
325 buf_len_ = entry_->GetDataSize(index_); in DoReadData()
327 if (!buf_len_) in DoReadData()
[all …]
Dview_cache_helper.h101 int buf_len_; variable
/external/chromium_org/net/url_request/
Dview_cache_helper.cc49 buf_len_(0), in ViewCacheHelper()
286 buf_len_ = entry_->GetDataSize(0); in DoReadResponse()
287 if (!buf_len_) in DoReadResponse()
288 return buf_len_; in DoReadResponse()
290 buf_ = new IOBuffer(buf_len_); in DoReadResponse()
295 buf_len_, in DoReadResponse()
300 if (result && result == buf_len_) { in DoReadResponseComplete()
304 buf_->data(), buf_len_, &response, &truncated) && in DoReadResponseComplete()
334 buf_len_ = entry_->GetDataSize(index_); in DoReadData()
335 if (!buf_len_) in DoReadData()
[all …]
Dview_cache_helper.h107 int buf_len_; variable
/external/chromium/net/disk_cache/
Dfile_posix.cc30 buf_(buf), buf_len_(buf_len), offset_(offset) { in FileBackgroundIO()
56 size_t buf_len_; member in __anon58ef75770111::FileBackgroundIO
93 if (file_->Read(const_cast<void*>(buf_), buf_len_, offset_)) { in Read()
94 result_ = static_cast<int>(buf_len_); in Read()
103 bool rv = file_->Write(buf_, buf_len_, offset_); in Write()
105 result_ = rv ? static_cast<int>(buf_len_) : net::ERR_CACHE_WRITE_FAILURE; in Write()
Din_flight_backend_io.cc134 buf_len_ = buf_len; in ReadData()
144 buf_len_ = buf_len; in WriteData()
154 buf_len_ = buf_len; in ReadSparseData()
163 buf_len_ = buf_len; in WriteSparseData()
171 buf_len_ = len; in GetAvailableRange()
249 result_ = entry_->ReadDataImpl(index_, offset_, buf_, buf_len_, in ExecuteEntryOperation()
253 result_ = entry_->WriteDataImpl(index_, offset_, buf_, buf_len_, in ExecuteEntryOperation()
257 result_ = entry_->ReadSparseDataImpl(offset64_, buf_, buf_len_, in ExecuteEntryOperation()
261 result_ = entry_->WriteSparseDataImpl(offset64_, buf_, buf_len_, in ExecuteEntryOperation()
265 result_ = entry_->GetAvailableRangeImpl(offset64_, buf_len_, start_); in ExecuteEntryOperation()
Dsparse_control.cc259 buf_len_ = buf_len; in StartIO()
270 make_scoped_refptr(new SparseOperationParameters(offset_, buf_len_))); in StartIO()
558 child_len_ = std::min(buf_len_, kMaxEntrySize - child_offset_); in VerifyRange()
582 child_len_ = std::min(child_len_ + partial_block_len, buf_len_); in VerifyRange()
585 buf_len_ = child_len_; in VerifyRange()
682 if (!buf_len_ || result_ < 0) in DoChildIO()
787 buf_len_ = 0; in DoGetAvailableRange()
803 buf_len_ -= result; in DoChildIOCompleted()
806 if (buf_len_ && user_buf_) in DoChildIOCompleted()
Dnet_log_parameters.cc28 : index_(index), offset_(offset), buf_len_(buf_len), truncate_(truncate) { in ReadWriteDataParameters()
35 dict->SetInteger("buf_len", buf_len_); in ToValue()
Dnet_log_parameters.h41 const int buf_len_; variable
Dsparse_control.h167 int buf_len_; // Bytes to read or write. variable
Din_flight_backend_io.h129 int buf_len_; variable
/external/chromium_org/net/disk_cache/
Dfile_ios.cc30 buf_(buf), buf_len_(buf_len), offset_(offset) { in FileBackgroundIO()
56 size_t buf_len_; member in __anonf72120960111::FileBackgroundIO
93 if (file_->Read(const_cast<void*>(buf_), buf_len_, offset_)) { in Read()
94 result_ = static_cast<int>(buf_len_); in Read()
103 bool rv = file_->Write(buf_, buf_len_, offset_); in Write()
105 result_ = rv ? static_cast<int>(buf_len_) : net::ERR_CACHE_WRITE_FAILURE; in Write()
Din_flight_backend_io.cc30 buf_len_(0), in BackendIO()
163 buf_len_ = buf_len; in ReadData()
173 buf_len_ = buf_len; in WriteData()
183 buf_len_ = buf_len; in ReadSparseData()
192 buf_len_ = buf_len; in WriteSparseData()
200 buf_len_ = len; in GetAvailableRange()
291 entry_->ReadDataImpl(index_, offset_, buf_.get(), buf_len_, in ExecuteEntryOperation()
296 entry_->WriteDataImpl(index_, offset_, buf_.get(), buf_len_, in ExecuteEntryOperation()
302 offset64_, buf_.get(), buf_len_, in ExecuteEntryOperation()
307 offset64_, buf_.get(), buf_len_, in ExecuteEntryOperation()
[all …]
Dsparse_control.cc198 buf_len_(0), in SparseControl()
268 buf_len_ = buf_len; in StartIO()
279 CreateNetLogSparseOperationCallback(offset_, buf_len_)); in StartIO()
579 child_len_ = std::min(buf_len_, kMaxEntrySize - child_offset_); in VerifyRange()
603 child_len_ = std::min(child_len_ + partial_block_len, buf_len_); in VerifyRange()
606 buf_len_ = child_len_; in VerifyRange()
702 if (!buf_len_ || result_ < 0) in DoChildIO()
809 buf_len_ = 0; in DoGetAvailableRange()
825 buf_len_ -= result; in DoChildIOCompleted()
828 if (buf_len_ && user_buf_.get()) in DoChildIOCompleted()
Dsparse_control.h167 int buf_len_; // Bytes to read or write. variable
Din_flight_backend_io.h136 int buf_len_; variable
/external/chromium_org/net/disk_cache/v3/
Dsparse_control_v3.cc200 buf_len_(0), in SparseControl()
249 buf_len_ = buf_len; in StartIO()
260 CreateNetLogSparseOperationCallback(offset_, buf_len_)); in StartIO()
546 if (!buf_len_ || result_ < 0) in DoChildIO()
622 buf_len_ -= result; in DoChildIOCompleted()
625 if (buf_len_ && user_buf_) in DoChildIOCompleted()
669 child_len_ = std::min(buf_len_, kMaxEntrySize - child_offset_); in VerifyRange()
693 child_len_ = std::min(child_len_ + partial_block_len, buf_len_); in VerifyRange()
696 buf_len_ = child_len_; in VerifyRange()
812 buf_len_ = 0; in DoGetAvailableRange()
Dsparse_control_v3.h165 int buf_len_; // Bytes to read or write. variable
/external/chromium_org/net/http/
Dhttp_response_body_drainer_unittest.cc68 buf_len_(0), in MockHttpStream()
151 int buf_len_; member in net::__anonee8faeac0111::MockHttpStream
176 buf_len_ = buf_len; in ReadResponseBody()
203 int result = ReadResponseBodyImpl(user_buf_.get(), buf_len_); in CompleteRead()
Dhttp_cache.cc194 buf_len_(0) { in MetadataWriter()
211 int buf_len_; member in net::HttpCache::MetadataWriter
229 buf_len_ = buf_len; in Write()
252 buf_len_, in VerifyResponse()
/external/chromium_org/base/third_party/symbolize/
Dsymbolize.cc387 buf_(buf), buf_len_(buf_len), bol_(buf), eol_(buf), eod_(buf) { in LineReader()
397 const ssize_t num_bytes = ReadPersistent(fd_, buf_, buf_len_); in ReadLine()
412 const int capacity_left = buf_len_ - incomplete_line_length; in ReadLine()
461 const int buf_len_; member in __anone2b26f570111::LineReader
/external/chromium/net/http/
Dhttp_cache.cc239 int buf_len_; member in net::HttpCache::MetadataWriter
258 buf_len_ = buf_len; in Write()
276 result = transaction_->WriteMetadata(buf_, buf_len_, &callback_); in VerifyResponse()