15class byte_buffer_source
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");
26 byte_buffer_source(
const ByteBuffer& buffer);
27 byte_buffer_source(range r);
28 byte_buffer_source(iterator begin, iterator end);
29 std::streamsize read(char_type* buf, std::streamsize n);