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;
 
holds arbitrary binary data
Definition: BinaryNode.h:41
 
DLLEXPORT int preallocate(size_t size)
pre-allocates a buffer of a certain size
 
DLLEXPORT int setSize(size_t size)
sets the buffer size after preallocation
 
DLLEXPORT const void * getPtr() const
returns the pointer to the data
 
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
 
DLLEXPORT AbstractQoreNode * raiseException(const char *err, const char *fmt,...)
appends a Qore-language exception to the list
 
defines a Qore-language class
Definition: QoreClass.h:239
 
Base class for private data of stream implementations in C++.
Definition: StreamBase.h:44
 
virtual DLLLOCAL const char * getName()=0
Returns the name of the class.
 
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
 
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275