mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
servlet::buffer_provider Struct Reference

Source tag. More...

#include <io.h>

Detailed Description

Source tag.

This tag is used to indicate that this object can be used as buffer provider for both servlet::basic_instream and servlet::basic_outstream. The object with this tag is expected to have the following category definition:

typedef buffer_provider category;

and the following methods (flush is required only for servlet::basic_outstream):

std::pair<CharT*, std::size_t> get_buffer();
void flush();

Method get_buffer returns std::pair containing buffer for the stream buffer to use and number of charcters available for the stream to use.

Method flush is required only if the buffer_provider is used with servlet::basic_outstream and it flushed underlying stream if needed.


The documentation for this struct was generated from the following file: