Inkscape
Vector Graphics Editor
|
This class is for reading character from a DOMString. More...
#include <bufferstream.h>
Public Member Functions | |
BufferInputStream (const std::vector< unsigned char > &sourceBuffer) | |
~BufferInputStream () override | |
int | available () override |
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. | |
void | close () override |
Closes this input stream and releases any system resources associated with the stream. | |
int | get () override |
Reads the next byte of data from the input stream. | |
![]() | |
InputStream ()=default | |
Constructor. | |
virtual | ~InputStream ()=default |
Destructor. | |
Private Attributes | |
const std::vector< unsigned char > & | buffer |
long | position |
bool | closed |
This class is for reading character from a DOMString.
Definition at line 40 of file bufferstream.h.
Inkscape::IO::BufferInputStream::BufferInputStream | ( | const std::vector< unsigned char > & | sourceBuffer | ) |
Definition at line 37 of file bufferstream.cpp.
|
overridedefault |
|
overridevirtual |
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
Implements Inkscape::IO::InputStream.
Definition at line 56 of file bufferstream.cpp.
|
overridevirtual |
Closes this input stream and releases any system resources associated with the stream.
Implements Inkscape::IO::InputStream.
Definition at line 68 of file bufferstream.cpp.
References closed.
|
overridevirtual |
Reads the next byte of data from the input stream.
-1 if EOF
Implements Inkscape::IO::InputStream.
Definition at line 76 of file bufferstream.cpp.
|
private |
Definition at line 52 of file bufferstream.h.
Referenced by available(), and get().
|
private |
Definition at line 54 of file bufferstream.h.
Referenced by available(), BufferInputStream(), close(), and get().
|
private |
Definition at line 53 of file bufferstream.h.
Referenced by available(), BufferInputStream(), and get().