|
Qore Programming Language - C/C++ Library
0.8.13.5
|
Interface for private data of transformations. More...
#include <Transform.h>


Public Member Functions | |
| 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 | |
Public Member Functions inherited from AbstractPrivateData | |
| 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... | |
Public Member Functions inherited from QoreReferenceCounter | |
| 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 | |
| Transform ()=default | |
| Constructor. | |
Protected Member Functions inherited from AbstractPrivateData | |
| 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.
|
pure virtual |
Applies the transformation.
| 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 |