32#ifndef _QORE_INPUTSTREAM_H
33#define _QORE_INPUTSTREAM_H
35#include "qore/StreamBase.h"
37DLLEXPORT
extern QoreClass* QC_INPUTSTREAM;
58 xsink->
raiseException(
"INPUT-STREAM-ERROR",
"%s::read() called with non-positive limit " QLLD,
63 result->preallocate(limit);
64 int64 count =
read(
const_cast<void *
>(result->getPtr()), limit, xsink);
65 result->setSize(count);
66 return count ? result.release() :
nullptr;
holds arbitrary binary data
Definition: BinaryNode.h:41
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:50
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:249
manages a reference count of a pointer to a class that takes a simple "deref()" call with no argument...
Definition: ReferenceHolder.h:127
Base class for private data of stream implementations in C++.
Definition: StreamBase.h:48
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:57
virtual DLLLOCAL const 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
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:276