Home
last modified time | relevance | path

Searched refs:output_buffer_ (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/chrome/browser/devtools/device/adb/
Dmock_adb_server.cc179 scoped_refptr<net::GrowableIOBuffer> output_buffer_; member in __anon14db857d0111::SimpleHttpServer::Connection
213 output_buffer_(new net::GrowableIOBuffer()), in Connection()
228 if ((output_buffer_->offset() + bytes_to_write_ + size) > in Send()
229 output_buffer_->capacity()) { in Send()
231 if (output_buffer_->capacity() < (bytes_to_write_ + size)) { in Send()
233 int new_size = std::max(output_buffer_->capacity() * 2, size * 2); in Send()
234 output_buffer_->SetCapacity(new_size); in Send()
236 memmove(output_buffer_->StartOfBuffer(), in Send()
237 output_buffer_->data(), in Send()
239 output_buffer_->set_offset(0); in Send()
[all …]
/external/chromium_org/remoting/protocol/
Dconnection_tester.cc46 output_buffer_->SetOffset(0); in CheckResults()
47 ASSERT_EQ(test_data_size_, output_buffer_->size()); in CheckResults()
49 EXPECT_EQ(0, memcmp(output_buffer_->data(), in CheckResults()
59 output_buffer_ = new net::DrainableIOBuffer( in InitBuffers()
62 output_buffer_->data()[i] = static_cast<char>(i); in InitBuffers()
71 if (output_buffer_->BytesRemaining() == 0) in DoWrite()
74 int bytes_to_write = std::min(output_buffer_->BytesRemaining(), in DoWrite()
77 output_buffer_.get(), in DoWrite()
95 output_buffer_->DidConsume(result); in HandleWriteResult()
Dconnection_tester.h60 scoped_refptr<net::DrainableIOBuffer> output_buffer_; variable
/external/chromium_org/net/dns/
Daddress_sorter_win.cc51 output_buffer_(reinterpret_cast<SOCKET_ADDRESS_LIST*>( in Job()
95 buffer_size_, output_buffer_.get(), buffer_size_, in Run()
109 list.reserve(output_buffer_->iAddressCount); in OnComplete()
110 for (int i = 0; i < output_buffer_->iAddressCount; ++i) { in OnComplete()
112 ipe.FromSockAddr(output_buffer_->Address[i].lpSockaddr, in OnComplete()
113 output_buffer_->Address[i].iSockaddrLength); in OnComplete()
128 scoped_ptr<SOCKET_ADDRESS_LIST, base::FreeDeleter> output_buffer_; member in net::__anone311529e0111::AddressSorterWin::Job
/external/chromium_org/jingle/glue/
Dpseudotcp_adapter_unittest.cc189 output_buffer_->SetOffset(0); in CheckResults()
190 ASSERT_EQ(kTestDataSize, output_buffer_->size()); in CheckResults()
192 EXPECT_EQ(0, memcmp(output_buffer_->data(), in CheckResults()
211 output_buffer_ = new net::DrainableIOBuffer( in InitBuffers()
213 memset(output_buffer_->data(), 123, kTestDataSize); in InitBuffers()
223 if (output_buffer_->BytesRemaining() == 0) in DoWrite()
226 int bytes_to_write = std::min(output_buffer_->BytesRemaining(), in DoWrite()
229 output_buffer_.get(), in DoWrite()
247 output_buffer_->DidConsume(result); in HandleWriteResult()
292 scoped_refptr<net::DrainableIOBuffer> output_buffer_; member in jingle_glue::__anond862723d0211::TCPChannelTester
/external/protobuf/src/google/protobuf/io/
Dgzip_stream.cc65 output_buffer_ = operator new(output_buffer_length_); in GzipInputStream()
66 GOOGLE_CHECK(output_buffer_ != NULL); in GzipInputStream()
67 zcontext_.next_out = static_cast<Bytef*>(output_buffer_); in GzipInputStream()
69 output_position_ = output_buffer_; in GzipInputStream()
72 operator delete(output_buffer_); in ~GzipInputStream()
105 zcontext_.next_out = static_cast<Bytef*>(output_buffer_); in Inflate()
107 output_position_ = output_buffer_; in Inflate()
Dgzip_stream.h98 void* output_buffer_; variable
/external/chromium_org/third_party/protobuf/src/google/protobuf/io/
Dgzip_stream.cc65 output_buffer_ = operator new(output_buffer_length_); in GzipInputStream()
66 GOOGLE_CHECK(output_buffer_ != NULL); in GzipInputStream()
67 zcontext_.next_out = static_cast<Bytef*>(output_buffer_); in GzipInputStream()
69 output_position_ = output_buffer_; in GzipInputStream()
72 operator delete(output_buffer_); in ~GzipInputStream()
109 zcontext_.next_out = static_cast<Bytef*>(output_buffer_); in Inflate()
111 output_position_ = output_buffer_; in Inflate()
Dgzip_stream.h99 void* output_buffer_; variable
/external/chromium_org/net/websockets/
Dwebsocket_inflater.cc37 output_buffer_(kDefaultBufferCapacity) {} in WebSocketInflater()
42 output_buffer_(output_buffer_capacity) { in WebSocketInflater()
94 while (num_bytes_copied < size && output_buffer_.Size() > 0) { in GetOutput()
96 std::min(output_buffer_.Size(), size - num_bytes_copied); in GetOutput()
97 output_buffer_.Read(&buffer->data()[num_bytes_copied], num_bytes_to_copy); in GetOutput()
129 std::pair<char*, size_t> tail = output_buffer_.GetTail(); in Inflate()
136 output_buffer_.AdvanceTail(tail.second - stream_->avail_out); in Inflate()
Dwebsocket_inflater.h62 size_t CurrentOutputSize() const { return output_buffer_.Size(); } in CurrentOutputSize()
123 OutputBuffer output_buffer_; variable
/external/chromium_org/chrome/browser/devtools/device/usb/
Dandroid_usb_browsertest.cc318 std::back_inserter(output_buffer_)); in append()
376 std::back_inserter(output_buffer_)); in WriteResponse()
378 output_buffer_.push_back(0); in WriteResponse()
388 if (query.size > output_buffer_.size()) in ProcessQueries()
392 std::copy(output_buffer_.begin(), in ProcessQueries()
393 output_buffer_.begin() + query.size, in ProcessQueries()
395 output_buffer_.erase(output_buffer_.begin(), in ProcessQueries()
396 output_buffer_.begin() + query.size); in ProcessQueries()
440 std::vector<char> output_buffer_; member in __anon1ce6b0c70111::MockUsbDeviceHandle