stream.h
Go to the documentation of this file.
53 iovec_istreambuf(const std::vector<std::pair<const void*, std::size_t>>& iovec) : iovec_(iovec) {}
59 throw std::out_of_range("iovec_istreambuf::xsgetn(dest, max_n): actual size of data exceeds max_n");
75 byte_ostreambuf(char_type* buffer, std::streamsize buffer_size = std::numeric_limits<std::streamsize>::max()) : buffer_(buffer), cursor_(buffer_), buffer_size_(buffer_size) {}
77 // hides basic_streambuf::sputn so can avoid the virtual function dispatch if the compiler is not aggressive enough
105 byte_istreambuf(const char_type* buffer, std::size_t buffer_size = std::numeric_limits<std::size_t>::max()) : buffer_(buffer), cursor_(buffer_), buffer_size_(buffer_size) {}
107 // hides basic_streambuf::sgetn so can avoid the virtual function dispatch if the compiler is not aggressive enough
streambuf that writes bytes to a buffer in memory
Definition: stream.h:101
byte_istreambuf(const char_type *buffer, std::size_t buffer_size=std::numeric_limits< std::size_t >::max())
Definition: stream.h:105
std::streamsize xsgetn(char_type *s, std::streamsize max_n) noexcept override final
Definition: stream.h:112
std::streamsize sgetn(char_type *s, std::streamsize n) noexcept
Definition: stream.h:108
std::streamsize size() const noexcept
number of characters read from the buffer
Definition: stream.h:120
streambuf that writes bytes to a buffer in memory
Definition: stream.h:71
std::streamsize xsputn(const char_type *s, std::streamsize n) noexcept override final
Definition: stream.h:82
std::streamsize sputn(const char_type *s, std::streamsize n) noexcept
Definition: stream.h:78
byte_ostreambuf(char_type *buffer, std::streamsize buffer_size=std::numeric_limits< std::streamsize >::max())
Definition: stream.h:75
std::streamsize size() const noexcept
number of characters written to the buffer
Definition: stream.h:90
std::streamsize xsputn(const char_type *s, std::streamsize n) override
Definition: stream.h:22
streambuf that reads vector of address-size pairs
Definition: stream.h:49
std::streamsize xsgetn(char_type *s, std::streamsize max_n) override
Definition: stream.h:56
iovec_istreambuf(const std::vector< std::pair< const void *, std::size_t >> &iovec)
Definition: stream.h:53
streambuf that records vector of address-size pairs
Definition: stream.h:32
std::streamsize xsputn(const char_type *s, std::streamsize n) override
Definition: stream.h:39
Definition: keymap.h:9
Definition: iovec.h:11
Definition: ptr.h:15