23 #ifndef __ccxx_BasicBufferedStream_hxx 24 #define __ccxx_BasicBufferedStream_hxx 80 typedef typename std::char_traits<C>::int_type int_type;
81 typedef typename std::char_traits<C>::pos_type pos_type;
82 typedef typename std::char_traits<C>::off_type off_type;
84 enum StreamOp { OpNone, OpRead, OpReadSeek, OpWrite, OpWriteSeek,
99 pos_type
seekpos(pos_type streampos, std::ios::openmode mode);
100 pos_type
seekoff(off_type offset, std::ios::seekdir dir,
101 std::ios::openmode mode);
106 inline void _resetp();
107 inline void _resetg();
123 #include <commonc++/BasicBufferedStreamImpl.h++> 130 #endif // __ccxx_BasicBufferedStream_hxx pos_type seekoff(off_type offset, std::ios::seekdir dir, std::ios::openmode mode)
StreamBuf(size_t bufferSize, Stream &stream)
IOMode
Stream I/O modes.
Definition: Stream.h++:36
pos_type seekpos(pos_type streampos, std::ios::openmode mode)
An unbuffered I/O stream.
Definition: Stream.h++:60
virtual ~BasicBufferedStream()
Destructor.
std::streamsize showmanyc()
int_type overflow(int_type c)
Read/write mode.
Definition: Stream.h++:42
BasicBufferedStream< byte_t > BufferedByteStream
Definition: BasicBufferedStream.h++:126
A buffered stream.
Definition: BasicBufferedStream.h++:44
BasicBufferedStream(Stream &stream, size_t bufferSize=DEFAULT_BUFFER_SIZE)
Construct a new BasicBufferedStream for the given stream and buffer size.
An implementation of basic_streambuf from the standard C++ library.
Definition: BasicBufferedStream.h++:77
BasicBufferedStream< char > BufferedCharStream
Definition: BasicBufferedStream.h++:125
virtual void close(IOMode mode=IOReadWrite)
Close the stream for reading, writing, or both.
static const size_t DEFAULT_BUFFER_SIZE
The default buffer size.
Definition: BasicBufferedStream.h++:58
Definition: AllocationMap.c++:25