Custom istream class for reading from an InputBuffer. More...
#include <BufferStream.hh>
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 InputBuffer & | getBuffer () const |
Return the InputBuffer this stream is reading from. | |
Protected Attributes | |
istreambuf | ibuf_ |
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.
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.