Home
last modified time | relevance | path

Searched refs:IOVector (Results 1 – 5 of 5) sorted by relevance

/system/core/adb/
Dtypes_test.cpp22 static std::unique_ptr<IOVector::block_type> create_block(const std::string& string) { in create_block()
23 return std::make_unique<IOVector::block_type>(string.begin(), string.end()); in create_block()
26 static std::unique_ptr<IOVector::block_type> create_block(char value, size_t len) { in create_block()
27 auto block = std::make_unique<IOVector::block_type>(); in create_block()
34 static std::unique_ptr<IOVector::block_type> copy_block(T&& block) { in copy_block()
35 auto copy = std::make_unique<IOVector::block_type>(); in copy_block()
40 TEST(IOVector, empty) { in TEST() argument
42 IOVector bc; in TEST()
46 TEST(IOVector, single_block) { in TEST() argument
49 IOVector bc; in TEST()
[all …]
Dtypes.h140 struct IOVector { struct
145 IOVector() {} in IOVector() function
147 explicit IOVector(std::unique_ptr<block_type> block) { in IOVector() function
151 IOVector(const IOVector& copy) = delete;
152 IOVector(IOVector&& move) noexcept : IOVector() { *this = std::move(move); } in IOVector() argument
154 IOVector& operator=(const IOVector& copy) = delete; argument
155 IOVector& operator=(IOVector&& move) noexcept {
180 IOVector take_front(size_type len) { in take_front() argument
181 IOVector head; in take_front()
Dtransport_fd.cpp96 auto block = std::make_unique<IOVector::block_type>(MAX_PAYLOAD); in Run()
202 auto header_block = std::make_unique<IOVector::block_type>(header_begin, header_end); in Write()
205 … write_buffer_.append(std::make_unique<IOVector::block_type>(std::move(packet->payload))); in Write()
222 IOVector read_buffer_;
230 IOVector write_buffer_ GUARDED_BY(write_mutex_);
232 IOVector incoming_queue_;
Dsocket.h66 IOVector packet_queue;
/system/core/adb/daemon/
Dusb.cpp690 IOVector incoming_payload_;
693 IOVector read_data_;