Module: Advanced Tools Package: Streams
RWNativeDataToByteOutputStreamImp RWDataToByteOutputStreamImp RWDataOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
#include <rw/stream/RWNativeDataToByteOutputStreamImp.h>
The class RWNativeDataToByteOutputStreamImp writes data in native format to a binary stream. Implements the body idiom from the handle-body pattern.
RWNativeDataToByteOutputStreamImp(RWByteOutputStream&
sinkStream);
Initializes the reference to the binary stream that will be used as the byte sink.
Parameter List
sinkStream |
The binary stream that will serve as the byte sink. |
virtual ~RWNativeDataToByteOutputStreamImp();
Destructor.
static RWDataOutputStream make(RWByteOutputStream& sink);
Constructs an RWNativeDataToByteOutputStreamImp instance that uses sink as its byte sink, and returns a handle to it. Throws no exceptions.
Parameter List
sink |
The binary stream that is used as the byte sink. |
virtual void putBools(const bool* arrayPt, RWSize count); virtual void putChars(const char* arrayPt, RWSize count); virtual void putDoubles(const double* arrayPt, RWSize count); virtual void putFloats(const float* arrayPt, RWSize count); virtual void putInts(const int* arrayPt, RWSize count); virtual void putLongs(const long* arrayPt, RWSize count); virtual void putLongDoubles(const long double* arrayPt, RWSize count); virtual void putLongLongs(const long long* arrayPt, RWSize count); virtual void putLongs(const long* arrayPt, RWSize count); virtual void putShorts(const short* arrayPt, RWSize count); virtual void putSignedChars(const signed char* arrayPt, RWSize count); virtual void putUnsignedChars(const unsigned char* arrayPt, RWSize count); virtual void putUnsignedInts(const unsigned int* arrayPt, RWSize count); virtual void putUnsignedLongs(const unsigned long* arrayPt, RWSize count); virtual void putUnsignedShorts(const unsigned short* arrayPt, RWSize count); virtual void putWchar_ts(const wchar_t* arrayPt, RWSize count);
These functions write an array of values to the binary stream that is used as the data sink.
Parameter List
arrayPt |
A pointer to the array's first element. |
count |
The number of elements to be written to the stream. |
virtual void putCharacter(char value);
Writes a narrow character to the binary stream that is used as the data sink.
Parameter List
value |
The narrow character to be written. |
virtual void putString(const char* string, RWSize count);
Writes a narrow character string to the binary stream that is used as the data sink.
Parameter List
string |
A pointer to the string's first element. |
count |
The number of elements to be written to the stream. |
virtual void putUCharacter(RWUChar value);
Writes a UTF-16 character to the binary stream that is used as the data sink.
Parameter List
value |
The UTF-16 character to be written. |
virtual void putUString(const RWUChar* ustring, RWSize count);
Writes a UTF-16 character string to the binary stream that is used as the data sink.
Parameter List
ustring |
A pointer to the string's first element. |
count |
The number of elements to be written to the stream. |
virtual void putWCharacter(wchar_t value);
Writes a wide character to the binary stream that is used as the data sink.
Parameter List
value |
The wide character to be written. |
virtual void putWString(const wchar_t* wstring, RWSize count);
Writes a wide character string to the binary stream that is used as the data sink.
Parameter List
wstring |
A pointer to the string's first element. |
count |
The number of elements 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.