32 #ifndef _QORE_INPUTSTREAM_H 33 #define _QORE_INPUTSTREAM_H 35 #include "qore/StreamBase.h" 37 DLLEXPORT
extern QoreClass* QC_INPUTSTREAM;
58 xsink->
raiseException(
"INPUT-STREAM-ERROR",
"%s::read() called with non-positive limit " QLLD,
66 return count ? result.release() :
nullptr;
106 #endif // _QORE_INPUTSTREAM_H
DLLEXPORT AbstractQoreNode * raiseException(const char *err, const char *fmt,...)
appends a Qore-language exception to the list
DLLEXPORT int preallocate(qore_size_t size)
pre-allocates a buffer of a certain size
DLLEXPORT int setSize(qore_size_t size)
sets the buffer size after preallocation
virtual DLLLOCAL const char * getName()=0
Returns the name of the class.
defines a Qore-language class
Definition: QoreClass.h:237
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:262
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46
DLLLOCAL bool check(ExceptionSink *xsink)
Checks that the current thread is the same as when the instance was created or assigned via unassignT...
Definition: StreamBase.h:53
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
DLLEXPORT const void * getPtr() const
returns the pointer to the data
Base class for private data of stream implementations in C++.
Definition: StreamBase.h:44
holds arbitrary binary data
Definition: BinaryNode.h:41