32#ifndef _QORE_STRINGINPUTSTREAM_H
33#define _QORE_STRINGINPUTSTREAM_H
36#include "qore/InputStream.h"
47 return "StringInputStream";
52 size_t count = src->
size() - offset;
56 if (count >
static_cast<size_t>(limit)) {
59 memcpy(ptr, src->
getBuffer() + offset, count);
65 if ((src->
size() - offset) == 0)
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
defines string encoding functions in Qore
Definition: QoreEncoding.h:83
DLLEXPORT const char * getBuffer() const
returns the string's buffer; this data should not be changed
DLLEXPORT const QoreEncoding * getEncoding() const
returns the encoding for the string
DLLEXPORT size_t size() const
returns number of bytes in the string (not including the null pointer)
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
DLLEXPORT QoreStringNode * stringRefSelf() const
references the object and returns a non-const pointer to "this"
manages a reference count of a pointer to a class that takes a simple "deref()" call with no argument...
Definition: ReferenceHolder.h:118
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