Module: Advanced Tools Package: Streams
RWByteOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
#include <rw/stream/RWByteOutputStreamImp.h>
Abstract base class for all the binary output stream implementation classes. Implements the body idiom from the handle-body pattern.
RWByteOutputStreamImp();
Constructor.
virtual ~RWByteOutputStreamImp();
Destructor.
virtual RWByteOutputStream acquire();
Acquires the synchronization mechanism provided by a stream concrete implementation. The acquire() member function returns a handle to the binary stream that should be used for output operation after acquiring the synchronization mechanism.
virtual void release();
Releases the synchronization mechanism provided by a stream concrete implementation.
virtual void write(RWByte byteValue) =0;
Writes a single byte to the stream.
Parameter List
byteValue |
The byte to be written to the stream. |
virtual void write(const RWByte* byteArray, RWSize numBytes) =0;
Writes an array of bytes to the stream.
Parameter List
byteArray |
A pointer to the first element of the array. |
numBytes |
The number of bytes to be written to the stream. |
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.