1#ifndef BYTE_BUFFER_SOURCE_HPP_6IBYOI0T
2#define BYTE_BUFFER_SOURCE_HPP_6IBYOI0T
4#include <vanetza/common/byte_buffer.hpp>
5#include <boost/iostreams/categories.hpp>
6#include <boost/range/iterator_range.hpp>
18 typedef char char_type;
19 typedef boost::iostreams::source_tag category;
20 typedef ByteBuffer::const_iterator iterator;
21 typedef boost::iterator_range<iterator> range;
23 static_assert(
sizeof(char_type) ==
sizeof(ByteBuffer::value_type),
24 "size mismatch of char_type and ByteBuffer::value_type");
29 std::streamsize read(char_type* buf, std::streamsize n);