Interface for private data of transformations.
More...
#include <Transform.h>
|
virtual std::pair< int64, int64 > | apply (const void *src, int64 srcLen, void *dst, int64 dstLen, ExceptionSink *xsink)=0 |
| Applies the transformation. More...
|
|
virtual DLLLOCAL size_t | inputBufferSize () |
| returns the default input buffer size for the object
|
|
virtual DLLLOCAL size_t | outputBufferSize () |
| returns the default output buffer size for the object
|
|
virtual DLLLOCAL void | deref () |
| decrements the reference count of the object without the possibility of throwing a Qore-language exception
|
|
virtual DLLLOCAL void | deref (ExceptionSink *xsink) |
| decrements the reference count of the object More...
|
|
DLLLOCAL void | ref () const |
| increments the reference count of the object
|
|
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
|
|
|
| Transform ()=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 transformations.
◆ apply()
Applies the transformation.
- Parameters
-
src | pointer to source data or nullptr for flushing when no more input data is available |
srcLen | the number of bytes in the src buffer |
dst | pointer to destination buffer |
dstLen | the number of bytes that can be written to dst |
xsink | the exception sink |
- Returns
- a pair (rc, wc) where rc is the number of bytes read from src and wc is the number of bytes written to dst
The documentation for this class was generated from the following file: