Enables Rsc services to marshal large data packets as stream.
More...
#include <RscStreamReader.hpp>
|
| RscStreamReader (void) |
| Constructs an empty instance of RscStreamReader
|
|
| RscStreamReader (RscReader &reader) |
| Constructs an instance of RscStreamReader to deserialize stream data More...
|
|
bool | IsEmpty (void) const |
| Determines if this instance contains a Rsc reader to read the data. More...
|
|
size_t | Read (byte *pBuffer, size_t bufferSize) |
| Reads up to bufferSize byte into memory referenced by pBuffer. More...
|
|
void | DeserializeTo (Stream &stream) |
| Deserializes the stream data and copies it to the as argument passed stream. More...
|
|
void | DeserializeTo (RscStreamWriter &streamWriter) |
| Deserialize the stream data and copies it to the as argument passed Rsc stream. More...
|
|
void | Skip (void) |
| Skips any remaining remoting data during deserialization, if any error occurs.
|
|
Enables Rsc services to marshal large data packets as stream.
◆ RscStreamReader()
Arp::Base::Rsc::Commons::RscStreamReader::RscStreamReader |
( |
RscReader & |
reader | ) |
|
|
explicit |
Constructs an instance of RscStreamReader to deserialize stream data
- Parameters
-
reader | The RscReader to deserialize the stream data. |
◆ DeserializeTo() [1/2]
void Arp::Base::Rsc::Commons::RscStreamReader::DeserializeTo |
( |
RscStreamWriter & |
streamWriter | ) |
|
Deserialize the stream data and copies it to the as argument passed Rsc stream.
- Parameters
-
streamWriter | The stream writer to deserialize the data to. |
◆ DeserializeTo() [2/2]
void Arp::Base::Rsc::Commons::RscStreamReader::DeserializeTo |
( |
Stream & |
stream | ) |
|
Deserializes the stream data and copies it to the as argument passed stream.
- Parameters
-
stream | The stream to copy the data to. |
◆ IsEmpty()
bool Arp::Base::Rsc::Commons::RscStreamReader::IsEmpty |
( |
void |
| ) |
const |
Determines if this instance contains a Rsc reader to read the data.
- Returns
true
if the remoting reader was set, otherwise false
.
If the remoting reader was not set, the Read() operation will throw an exception.
◆ Read()
size_t Arp::Base::Rsc::Commons::RscStreamReader::Read |
( |
byte * |
pBuffer, |
|
|
size_t |
bufferSize |
|
) |
| |
Reads up to bufferSize
byte into memory referenced by pBuffer.
- Parameters
-
pBuffer | Pointer to buffer memory to write the read bytes to. |
bufferSize | Size of memory addressed by pBuffer. |
- Returns
- Number of bytes read into pBuffer, 0 if stream ends.
The documentation for this class was generated from the following files: