32 #ifndef _QORE_BINARYINPUTSTREAM_H 33 #define _QORE_BINARYINPUTSTREAM_H 36 #include "qore/InputStream.h" 47 return "BinaryInputStream";
56 if (count > static_cast<qore_size_t>(limit)) {
59 memcpy(ptr, static_cast<const uint8_t*>(src->
getPtr()) + offset, count);
65 if ((src->
size() - offset) == 0)
67 return static_cast<const char*
>(src->
getPtr())[offset];
75 #endif // _QORE_BINARYINPUTSTREAM_H size_t qore_size_t
used for sizes (same range as a pointer)
Definition: common.h:73
DLLEXPORT BinaryNode * binRefSelf() const
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46
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
DLLEXPORT const void * getPtr() const
returns the pointer to the data
DLLEXPORT qore_size_t size() const
returns the number of bytes in the object
holds arbitrary binary data
Definition: BinaryNode.h:41