Qore Programming Language - C/C++ Library
0.8.13.8
|
Interface for private data of output streams. More...
#include <OutputStream.h>
Public Member Functions | |
virtual void | close (ExceptionSink *xsink)=0 |
Flushes any buffered (unwritten) bytes, closes the output stream and releases resources. More... | |
virtual void | write (const void *ptr, int64 count, ExceptionSink *xsink)=0 |
Writes bytes to the output 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 | |
OutputStream ()=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 output streams.
Methods in this interface serve as low-level API for using output streams from C++ code.
|
pure virtual |
Flushes any buffered (unwritten) bytes, closes the output stream and releases resources.
xsink | the exception sink |
|
pure virtual |
Writes bytes to the output stream.
ptr | the source buffer to write to the stream |
count | the number of bytes to write, must be >= 0 |
xsink | the exception sink |