SourcePro® 2023.1 |
SourcePro® API Reference Guide |
Handle class for binary output streams, allowing retrieval of inserted data as a byte array. More...
#include <rw/stream/RWByteArrayOutputStream.h>
Additional Inherited Members | |
Protected Member Functions inherited from RWHandleBase | |
RWHandleBase (void) | |
RWHandleBase (RWStaticCtor) | |
RWHandleBase (RWBodyBase *body) | |
RWHandleBase (const RWHandleBase &second) | |
~RWHandleBase (void) | |
RWBodyBase & | body (void) const |
RWHandleBase & | operator= (const RWHandleBase &second) |
Related Functions inherited from RWByteOutputStream | |
RWByteOutputStream & | rwFlush (RWByteOutputStream &stream) |
RWByteOutputStream | rwGuard (RWByteOutputStream &stream) |
The handle class for binary output streams supporting an extended interface that allows retrieval of their inserted data as a byte array. Implements the handle idiom from the handle-body pattern.
|
inlineexplicit |
Constructor.
body | A pointer to an implementation class supporting the abstract interface RWByteArrayOutputStreamImp. |
|
inline |
Copy constructor.
handle | A binary array stream handle used to initialize the newly created handle. |
|
inline |
Resets the underlying buffer.
|
inline |
Returns a pointer to an array of bytes containing the bytes inserted into the stream since its creation. Users are responsible for freeing the memory associated with the array returned by this function, by using operator delete[]
.
|
inline |
Returns the size of the byte array that would be returned by a call to function getByteArray().
|
inline |
Assignment operator.
handle | A binary array stream handle used to initialize this handle. |
Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |