32 #ifndef _QORE_BINARYINPUTSTREAM_H
33 #define _QORE_BINARYINPUTSTREAM_H
36 #include "qore/InputStream.h"
60 return "BinaryInputStream";
65 size_t count = len - offset;
69 if (count >
static_cast<size_t>(limit)) {
72 memcpy(ptr,
static_cast<const uint8_t*
>(this->ptr) + offset, count);
78 if ((len - offset) == 0)
80 return static_cast<const char*
>(ptr)[offset];
holds arbitrary binary data
Definition: BinaryNode.h:41
DLLEXPORT size_t size() const
returns the number of bytes in the object
DLLEXPORT BinaryNode * binRefSelf() const
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 size_t size() const
returns number of bytes in the string (not including the null pointer)
DLLEXPORT const char * c_str() const
returns the string's buffer; this data should not be changed
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"
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
const qore_type_t NT_BINARY
type value for BinaryNode
Definition: node_types.h:49
const qore_type_t NT_STRING
type value for QoreStringNode
Definition: node_types.h:45
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275