Searched refs:block_type (Results 1 – 3 of 3) sorted by relevance
142 using block_type = Block; member147 explicit IOVector(std::unique_ptr<block_type> block) { in IOVector()188 std::shared_ptr<const block_type> first_block = chain_.front(); in take_front()218 void append(std::unique_ptr<const block_type> block) { in append()228 void append(block_type&& block) { append(std::make_unique<block_type>(std::move(block))); } in append()235 const block_type* first_block = chain_.front().get(); in trim_front()236 auto copy = std::make_unique<block_type>(first_block->size() - begin_offset_); in trim_front()247 void append_shared(std::shared_ptr<const block_type> block) { in append_shared()269 const std::shared_ptr<const block_type>& block = chain_.at(i); in iterate_blocks()291 template <typename CollectionType = block_type>[all …]
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()
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()