Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>a streambuf specialized for in memory operations</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
A streambuf Specialized for In Memory Operations

   The strstreambuf class is a derivation of streambuf that uses an area of
   memory, either user nominated or dynamically allocated.

   The extra public interface is as follows:

   const int default_allocation = 32;

   class strstreambuf : public streambuf {
   public:
       strstreambuf(int = default_allocation);
       strstreambuf(char *memory, int length, char *put_area);
       strstreambuf(void *(*allocator)(size_t), void
   (*deallocator)(void *), int = default_allocation);

       void freeze(int n = 1);
       char *str();
       streambuf *setbuf(char *memory, int length);
   };

   The following functions require the inclusion of file sstream.hpp.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson