Searched refs:IOVector (Results 1 – 5 of 5) sorted by relevance
22 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() argument42 IOVector bc; in TEST()46 TEST(IOVector, single_block) { in TEST() argument49 IOVector bc; in TEST()[all …]
140 struct IOVector { struct145 IOVector() {} in IOVector() function147 explicit IOVector(std::unique_ptr<block_type> block) { in IOVector() function151 IOVector(const IOVector& copy) = delete;152 IOVector(IOVector&& move) noexcept : IOVector() { *this = std::move(move); } in IOVector() argument154 IOVector& operator=(const IOVector& copy) = delete; argument155 IOVector& operator=(IOVector&& move) noexcept {180 IOVector take_front(size_type len) { in take_front() argument181 IOVector head; in take_front()
96 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_;
66 IOVector packet_queue;
690 IOVector incoming_payload_;693 IOVector read_data_;