32#ifndef _QORE_BINARYOUTPUTSTREAM_H
33#define _QORE_BINARYOUTPUTSTREAM_H
36#include "qore/OutputStream.h"
48 return "BinaryOutputStream";
holds arbitrary binary data
Definition: BinaryNode.h:41
DLLEXPORT void append(const void *nptr, size_t size)
resizes the object and appends a copy of the data passed to the object
Private data for the Qore::BinaryOutputStream class.
Definition: BinaryOutputStream.h:41
DLLLOCAL bool isClosed() override
Returns true is the stream has been closed.
Definition: BinaryOutputStream.h:51
DLLLOCAL const char * getName() override
Returns the name of the class.
Definition: BinaryOutputStream.h:47
DLLLOCAL void close(ExceptionSink *xsink) override
Flushes any buffered (unwritten) bytes, closes the output stream and releases resources.
Definition: BinaryOutputStream.h:55
DLLLOCAL void write(const void *ptr, int64 count, ExceptionSink *xsink) override
Writes bytes to the output stream.
Definition: BinaryOutputStream.h:60
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:50
Interface for private data of output streams.
Definition: OutputStream.h:44
DLLLOCAL bool check(ExceptionSink *xsink)
Checks that the current thread is the same as when the instance was created or assigned via unassignT...
Definition: OutputStream.h:54
manages a reference count of a pointer to a class that takes a simple "deref()" call with no argument...
Definition: ReferenceHolder.h:127
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