Ipelib
|
#include <ipebase.h>
Inherits ipe::DataSource.
Public Member Functions | |
BufferSource (const Buffer &buffer) | |
virtual int | getChar () override |
virtual int | length () const override |
virtual void | setPosition (int pos) override |
virtual int | position () const override |
Public Member Functions inherited from ipe::DataSource | |
virtual | ~DataSource ()=0 |
Data source for parsing from a buffer.
BufferSource::BufferSource | ( | const Buffer & | buffer | ) |
|
overridevirtual |
|
overridevirtual |
Return length of input stream in characters.
Returns -1 if the stream is not seekable. Calling this function will invalidate the current position.
Reimplemented from ipe::DataSource.
References ipe::Buffer::size().
|
overridevirtual |
Set position in stream.
Does nothing if the stream is not seekable.
Reimplemented from ipe::DataSource.
|
overridevirtual |
Return position in stream.
Returns -1 if the stream is not seekable.
Reimplemented from ipe::DataSource.