avro::istream Class Reference

Custom istream class for reading from an InputBuffer. More...

#include <BufferStream.hh>

List of all members.

Public Member Functions

 istream (const InputBuffer &buf)
 Constructor, requires an InputBuffer to read from.
 istream (const OutputBuffer &buf)
 Constructor, takes an OutputBuffer to read from (by making a shallow copy to an InputBuffer).
const InputBuffergetBuffer () const
 Return the InputBuffer this stream is reading from.

Protected Attributes

istreambuf ibuf_

Detailed Description

Custom istream class for reading from an InputBuffer.

If the buffer contains binary data, then it is recommended to only use the read() and readsome() functions--get() or getline() may be confused if the binary data happens to contain an EOF character.

For buffers containing text, the full implementation of istream is safe.


Constructor & Destructor Documentation

avro::istream::istream ( const OutputBuffer buf  )  [inline, explicit]

Constructor, takes an OutputBuffer to read from (by making a shallow copy to an InputBuffer).

Writing to the OutputBuffer while an istream is using it may lead to undefined behavior.


The documentation for this class was generated from the following file:
Generated on Thu Sep 2 18:40:54 2010 for Avro C++ by  doxygen 1.6.3