Home
last modified time | relevance | path

Searched refs:buf_len_ (Results 1 – 12 of 12) 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/net/disk_cache/
Dfile_posix.cc30 buf_(buf), buf_len_(buf_len), offset_(offset) { in FileBackgroundIO()
56 size_t buf_len_; member in __anon02a465130111::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/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()