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