Chops Net IP
Loading...
Searching...
No Matches
io_buf.hpp File Reference

Shared code used in IO unit tests, such as output_queue_test.cpp and io_common_test.cpp. More...

#include <cstddef>
#include <numeric>
#include <vector>
#include "buffer/shared_buffer.hpp"
#include "utility/byte_array.hpp"
Include dependency graph for io_buf.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  chops::test::io_buf_and_int
 

Functions

auto chops::test::make_io_buf1 ()
 
auto chops::test::make_io_buf2 ()
 
auto chops::test::make_io_buf_vec ()
 
auto chops::test::make_io_buf_and_int_vec ()
 
template<typename E >
std::size_t chops::test::accum_io_buf_size (const std::vector< E > &data_vec)
 

Variables

constexpr int chops::test::Answer = 42
 

Detailed Description

Shared code used in IO unit tests, such as output_queue_test.cpp and io_common_test.cpp.

Author
Cliff Green

Copyright (c) 2019 by Cliff Green

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)