Home
last modified time | relevance | path

Searched refs:io_buffer_ (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/net/dns/
Ddns_query.cc26 io_buffer_ = new IOBufferWithSize(sizeof(dns_protocol::Header) + in DnsQuery()
29 reinterpret_cast<dns_protocol::Header*>(io_buffer_->data()); in DnsQuery()
52 reinterpret_cast<const dns_protocol::Header*>(io_buffer_->data()); in id()
57 return base::StringPiece(io_buffer_->data() + sizeof(dns_protocol::Header), in qname()
64 io_buffer_->data() + sizeof(dns_protocol::Header) + qname_size_, &type); in qtype()
69 return base::StringPiece(io_buffer_->data() + sizeof(dns_protocol::Header), in question()
75 io_buffer_ = new IOBufferWithSize(orig.io_buffer()->size()); in DnsQuery()
76 memcpy(io_buffer_.get()->data(), orig.io_buffer()->data(), in DnsQuery()
77 io_buffer_.get()->size()); in DnsQuery()
79 reinterpret_cast<dns_protocol::Header*>(io_buffer_->data()); in DnsQuery()
[all …]
Ddns_response.cc145 : io_buffer_(new IOBufferWithSize(dns_protocol::kMaxUDPSize + 1)) { in DnsResponse()
149 : io_buffer_(new IOBufferWithSize(length)) { in DnsResponse()
155 : io_buffer_(new IOBufferWithSize(length)), in DnsResponse()
156 parser_(io_buffer_->data(), length, answer_offset) { in DnsResponse()
158 memcpy(io_buffer_->data(), data, length); in DnsResponse()
167 if (nbytes < query.io_buffer()->size() || nbytes >= io_buffer_->size()) in InitParse()
181 if (question != base::StringPiece(io_buffer_->data() + hdr_size, in InitParse()
187 parser_ = DnsRecordParser(io_buffer_->data(), in InitParse()
198 if (nbytes < static_cast<int>(hdr_size) || nbytes >= io_buffer_->size()) in InitParseWithoutQuery()
202 io_buffer_->data(), nbytes, hdr_size); in InitParseWithoutQuery()
[all …]
Ddns_query.h39 IOBufferWithSize* io_buffer() const { return io_buffer_.get(); } in io_buffer()
51 scoped_refptr<IOBufferWithSize> io_buffer_; variable
Ddns_response.h115 IOBufferWithSize* io_buffer() { return io_buffer_.get(); } in io_buffer()
158 scoped_refptr<IOBufferWithSize> io_buffer_; variable
/external/chromium_org/media/cdm/ppapi/
Dcdm_file_io_impl.cc127 PP_DCHECK(io_buffer_.empty()); in Read()
130 io_buffer_.resize(kReadSize); in Read()
160 PP_DCHECK(io_buffer_.empty()); in Write()
162 io_buffer_.assign(data, data + data_size); in Write()
294 PP_DCHECK(!io_buffer_.empty()); in ReadFile()
299 file_io_.Read(io_offset_, &io_buffer_[0], io_buffer_.size(), cb), in ReadFile()
315 PP_DCHECK(static_cast<size_t>(bytes_read) <= io_buffer_.size()); in OnFileRead()
318 io_buffer_.begin(), in OnFileRead()
319 io_buffer_.begin() + bytes_read); in OnFileRead()
329 io_buffer_.clear(); in OnFileRead()
[all …]
Dcdm_file_io_impl.h151 std::vector<char> io_buffer_; variable
/external/chromium_org/chromeos/dbus/
Dpipe_reader.cc18 : io_buffer_(new net::IOBufferWithSize(4096)), in PipeReader()
41 io_buffer_.get(), io_buffer_->size(), in StartIO()
57 AcceptData(io_buffer_->data(), byte_count); in OnDataReady()
61 io_buffer_.get(), io_buffer_->size(), in OnDataReady()
Dpipe_reader.h60 scoped_refptr<net::IOBufferWithSize> io_buffer_; variable
/external/chromium_org/chrome/browser/chromeos/file_system_provider/operations/
Dread_file_unittest.cc110 io_buffer_ = make_scoped_refptr(new net::IOBuffer(kOffset + kLength)); in SetUp()
114 scoped_refptr<net::IOBuffer> io_buffer_; member in chromeos::file_system_provider::operations::FileSystemProviderOperationsReadFileTest
125 io_buffer_.get(), in TEST_F()
175 io_buffer_.get(), in TEST_F()
197 io_buffer_.get(), in TEST_F()
229 EXPECT_EQ(data, std::string(io_buffer_->data(), kLength)); in TEST_F()
244 io_buffer_.get(), in TEST_F()
/external/chromium_org/content/browser/fileapi/
Dmock_url_request_delegate.cc18 : io_buffer_(new net::IOBuffer(kBufferSize)) { in MockURLRequestDelegate()
48 if (!request->Read(io_buffer_.get(), kBufferSize, &bytes_read)) { in ReadSome()
60 response_data_.append(io_buffer_->data(), in ReceiveData()
Dmock_url_request_delegate.h32 scoped_refptr<net::IOBuffer> io_buffer_; variable
/external/chromium_org/google_apis/gcm/base/
Dsocket_stream.cc24 io_buffer_(new net::IOBuffer(kDefaultBufferSize)), in SocketInputStream()
25 read_buffer_(new net::DrainableIOBuffer(io_buffer_.get(), in SocketInputStream()
50 *data = io_buffer_->data() + next_pos_; in Next()
131 if (unread_data_ptr != io_buffer_->data()) { in RebuildBuffer()
135 std::memmove(io_buffer_->data(), unread_data_ptr, unread_data_size); in RebuildBuffer()
210 io_buffer_(new net::IOBuffer(kDefaultBufferSize)), in SocketOutputStream()
211 write_buffer_(new net::DrainableIOBuffer(io_buffer_.get(), in SocketOutputStream()
Dsocket_stream.h111 const scoped_refptr<net::IOBuffer> io_buffer_; variable
184 const scoped_refptr<net::IOBuffer> io_buffer_; variable
/external/chromium_org/webkit/browser/fileapi/
Dfile_writer_delegate.cc32 io_buffer_(new net::IOBufferWithSize(kReadBufSize)), in FileWriterDelegate()
113 if (request_->Read(io_buffer_.get(), io_buffer_->size(), &bytes_read_)) { in Read()
131 cursor_ = new net::DrainableIOBuffer(io_buffer_.get(), bytes_read_); in OnDataReceived()
Dfile_writer_delegate.h99 scoped_refptr<net::IOBufferWithSize> io_buffer_; variable
Dcopy_or_move_operation_delegate.cc546 io_buffer_(new net::IOBufferWithSize(buffer_size)), in StreamCopyHelper()
572 io_buffer_.get(), io_buffer_->size(), in Read()
600 Write(callback, new net::DrainableIOBuffer(io_buffer_.get(), result)); in DidRead()
Dcopy_or_move_operation_delegate.h83 scoped_refptr<net::IOBufferWithSize> io_buffer_; variable
/external/chromium_org/chrome/browser/local_discovery/
Dprivet_traffic_detector.cc60 io_buffer_( in PrivetTrafficDetector()
153 const char* buffer_begin = io_buffer_->data(); in IsPrivetPacket()
181 io_buffer_, in DoLoop()
182 io_buffer_->size(), in DoLoop()
Dprivet_traffic_detector.h60 scoped_refptr<net::IOBufferWithSize> io_buffer_;
/external/chromium_org/content/browser/service_worker/
Dservice_worker_write_to_cache_job.cc121 io_buffer_ = NULL; in ReadRawData()
157 io_buffer_ = buf; in ReadNetData()
210 io_buffer_, amount_to_write, in WriteDataToCache()
217 io_buffer_ = NULL; in OnWriteDataComplete()
Dservice_worker_write_to_cache_job.h98 scoped_refptr<net::IOBuffer> io_buffer_; variable
/external/chromium_org/extensions/browser/api/socket/
Dsocket_api.cc402 : socket_id_(0), io_buffer_(NULL), io_buffer_size_(0) {} in SocketWriteFunction()
412 io_buffer_ = new net::WrappedIOBuffer(data->GetBuffer()); in Prepare()
425 socket->Write(io_buffer_, in AsyncWorkStart()
482 io_buffer_(NULL), in SocketSendToFunction()
497 io_buffer_ = new net::WrappedIOBuffer(data->GetBuffer()); in Prepare()
535 socket_->SendTo(io_buffer_, in StartSendTo()
Dsocket_api.h300 scoped_refptr<net::IOBuffer> io_buffer_; variable
346 scoped_refptr<net::IOBuffer> io_buffer_; variable
/external/chromium_org/extensions/browser/api/sockets_tcp/
Dsockets_tcp_api.cc338 io_buffer_ = new net::WrappedIOBuffer(params_->data.data()); in Prepare()
350 socket->Write(io_buffer_, in AsyncWorkStart()
Dsockets_tcp_api.h189 scoped_refptr<net::IOBuffer> io_buffer_; variable

12