SourcePro® 2025.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>
Public Member Functions | |
| RWByteArrayOutputStream (const RWByteArrayOutputStream &handle) | |
| RWByteArrayOutputStream (RWByteArrayOutputStreamImp *body) | |
| void | clear () |
| RWByte * | getByteArray () |
| RWSize | getByteArraySize () const |
| RWByteArrayOutputStream & | operator= (const RWByteArrayOutputStream &handle) |
Public Member Functions inherited from RWByteOutputStream | |
| RWByteOutputStream (const RWByteOutputStream &handle) | |
| RWByteOutputStream (RWByteOutputStreamImp *ptr) | |
| void | close () |
| void | flush () |
| bool | isBad () const |
| bool | isFail () const |
| bool | isGood () const |
| RWByteOutputStream & | operator<< (RWByte byteValue) |
| RWByteOutputStream & | operator<< (RWByteOutputStream &(*pf)(RWByteOutputStream &)) |
| RWByteOutputStream | operator<< (RWByteOutputStream(*pf)(RWByteOutputStream &)) |
| RWByteOutputStream & | operator= (const RWByteOutputStream &handle) |
| void | write (const RWByte *byteArray, RWSize numBytes) |
| void | write (RWByte byteValue) |
Public Member Functions inherited from RWHandleBase | |
| bool | isValid (void) const |
Additional Inherited Members | |
Protected Member Functions inherited from RWHandleBase | |
| RWHandleBase (const RWHandleBase &second) | |
| RWHandleBase (RWBodyBase *body) | |
| RWHandleBase (RWStaticCtor) | |
| RWHandleBase (void) | |
| ~RWHandleBase (void) | |
| RWBodyBase & | body (void) const |
| RWHandleBase & | operator= (const RWHandleBase &second) |
Related Symbols inherited from RWByteOutputStream | |
| RWByteOutputStream & | rwFlush (RWByteOutputStream &stream) |
| RWByteOutputStream | rwGuard (RWByteOutputStream &stream) |
Related Symbols inherited from RWHandleBase | |
| bool | operator!= (const RWHandleBase &lhs, const RWHandleBase &rhs) |
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 © 2025 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |