32#ifndef _QORE_INPUTSTREAMWRAPPER_H
33#define _QORE_INPUTSTREAMWRAPPER_H
35#include "qore/InputStream.h"
53 args->push(limit, xsink);
59 size_t count = buf->
size();
62 "%s::read() returned an empty binary; NOTHING should be used to indicate the end of the stream",
66 if (count >
static_cast<size_t>(limit)) {
68 "%s::rRead() returned %lu bytes which is more than the specified limit of %lu",
69 self->
getClassName(), count,
static_cast<size_t>(limit));
72 memcpy(ptr, buf->
getPtr(), count);
81 return resHolder->getAsBigInt();
88 DLLLOCAL
virtual const char*
getName()
override {
89 return "InputStreamWrapper";
holds arbitrary binary data
Definition: BinaryNode.h:41
DLLEXPORT size_t size() const
returns the number of bytes in the object
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:50
DLLEXPORT AbstractQoreNode * raiseException(const char *err, const char *fmt,...)
appends a Qore-language exception to the list
This is the list container type in Qore, dynamically allocated only, reference counted.
Definition: QoreListNode.h:52
the implementation of Qore's object data type, reference counted, dynamically-allocated only
Definition: QoreObject.h:62
DLLEXPORT QoreValue evalMethod(const QoreString *name, const QoreListNode *args, ExceptionSink *xsink)
evaluates the given method with the arguments passed and returns the return value,...
DLLEXPORT const char * getClassName() const
returns the name of the class
a templated class to manage a reference count of an object that can throw a Qore-language exception w...
Definition: ReferenceHolder.h:52
holds an object and dereferences it in the destructor
Definition: QoreValue.h:487
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