32 #ifndef _QORE_STRINGOUTPUTSTREAM_H
33 #define _QORE_STRINGOUTPUTSTREAM_H
36 #include "qore/OutputStream.h"
51 return "StringOutputStream";
66 buf->
concat((
const char*)ptr, count);
77 return buf && !buf->
empty();
DLLEXPORT const QoreEncoding * QCS_DEFAULT
the default encoding for the Qore library
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
Interface for private data of output streams.
Definition: OutputStream.h:44
DLLLOCAL bool check(ExceptionSink *xsink)
Checks that the current thread is the same as when the instance was created or assigned via unassignT...
Definition: OutputStream.h:54
defines string encoding functions in Qore
Definition: QoreEncoding.h:83
DLLEXPORT void concat(const QoreString *str, ExceptionSink *xsink)
concatenates a string and converts encodings if necessary
DLLEXPORT bool empty() const
returns true if the string is empty, false if not
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
Private data for the Qore::StringOutputStream class.
Definition: StringOutputStream.h:41
DLLLOCAL void write(const void *ptr, int64 count, ExceptionSink *xsink) override
Writes bytes to the output stream.
Definition: StringOutputStream.h:63
DLLLOCAL void close(ExceptionSink *xsink) override
Flushes any buffered (unwritten) bytes, closes the output stream and releases resources.
Definition: StringOutputStream.h:58
DLLLOCAL bool isClosed() override
Returns true is the stream has been closed.
Definition: StringOutputStream.h:54
DLLLOCAL const char * getName() override
Returns the name of the class.
Definition: StringOutputStream.h:50
long long int64
64bit integer type, cannot use int64_t here since it breaks the API on some 64-bit systems due to equ...
Definition: common.h:260