Qore Programming Language - C/C++ Library
0.8.13.4
|
Interface for private data of input streams. More...
#include <InputStream.h>
Public Member Functions | |
virtual int64 | peek (ExceptionSink *xsink)=0 |
Peeks the next byte from the input stream. More... | |
virtual int64 | read (void *ptr, int64 limit, ExceptionSink *xsink)=0 |
Reads up to `limit` bytes from the input stream. More... | |
![]() | |
virtual DLLLOCAL void | deref (ExceptionSink *xsink) |
decrements the reference count of the object More... | |
virtual DLLLOCAL void | deref () |
decrements the reference count of the object without the possibility of throwing a Qore-language exception | |
DLLLOCAL void | ref () |
increments the reference count of the object More... | |
![]() | |
DLLEXPORT | QoreReferenceCounter () |
creates the reference counter object | |
DLLEXPORT | QoreReferenceCounter (const QoreReferenceCounter &old) |
creates a new object with a reference count of 1 More... | |
DLLEXPORT | ~QoreReferenceCounter () |
destroys the reference counter object | |
DLLEXPORT bool | is_unique () const |
returns true if the reference count is 1 More... | |
DLLEXPORT int | reference_count () const |
gets the reference count More... | |
DLLEXPORT bool | ROdereference () const |
atomically decrements the reference count More... | |
DLLEXPORT void | ROreference () const |
atomically increments the reference count | |
Protected Member Functions | |
InputStream ()=default | |
Constructor. | |
![]() | |
virtual DLLLOCAL | ~AbstractPrivateData () |
as these objects are reference counted, the destructor should be called only when the reference count = 0 and not manually | |
Interface for private data of input streams.
Methods in this interface serve as low-level API for using input streams from C++ code.
|
pure virtual |
Peeks the next byte from the input stream.
xsink | the exception sink |
|
pure virtual |
Reads up to `limit` bytes from the input stream.
ptr | the destination buffer to read data into |
limit | the maximum number of bytes to read, must be > 0 |
xsink | the exception sink |