Enables Rsc services to marshal large data packets as stream.
More...
#include <RscStreamWriter.hpp>
Enables Rsc services to marshal large data packets as stream.
◆ RscStreamWriter()
Arp::Base::Rsc::Commons::RscStreamWriter::RscStreamWriter |
( |
RscWriter & |
writer | ) |
|
|
explicit |
Constructs an instance of RscStreamWriter to serialize stream data.
- Parameters
-
writer | The RscWriter to serialize the stream data. |
◆ IsEmpty()
bool Arp::Base::Rsc::Commons::RscStreamWriter::IsEmpty |
( |
void |
| ) |
const |
Determines if this instance has an remoting writer to write data
- Returns
true
if the remoting writer was set, otherwise false
.
If the remoting writer was not set, the Write() operation will throw an exception.
◆ SerializeFrom() [1/2]
void Arp::Base::Rsc::Commons::RscStreamWriter::SerializeFrom |
( |
RscStreamReader & |
streamReader | ) |
|
Serialize the data from the as argument passed stream reader.
- Parameters
-
streamReader | The stream reader to read the data from for serialization. |
◆ SerializeFrom() [2/2]
void Arp::Base::Rsc::Commons::RscStreamWriter::SerializeFrom |
( |
Stream & |
stream | ) |
|
Serialize the data from the as argument passed stream.
- Parameters
-
stream | The stream to read the data from for serialization. |
◆ Write()
void Arp::Base::Rsc::Commons::RscStreamWriter::Write |
( |
const byte * |
buffer, |
|
|
size_t |
bufferSize |
|
) |
| |
Writes bufferSize
bytes of the supplied buffer into the stream.
- Parameters
-
buffer | Pointer to the buffer to write into the stream. |
bufferSize | Size of the buffer. |
The documentation for this class was generated from the following files: