8#include "Arp/Base/Rsc/Commons/Rsc.hpp"
9#include "Arp/Base/Commons/Io/Stream.hpp"
11namespace Arp::Base::Rsc::Commons
31 bool IsEmpty(
void)
const;
34 void Write(
const byte* buffer,
size_t bufferSize);
35 void SerializeFrom(
Stream& stream);
40 void BeginWrite(
void);
42 void CheckNotEmpty(
void);
46 bool hasBegunWrite =
false;
49 static constexpr int32 maxPacketSize = std::numeric_limits<int32>::max();
50 static constexpr size_t copyBufferSize = 4096;
51 static constexpr int32 endTag = -1;
This abstract class shall be the base class of all stream implementations.
Definition: Stream.hpp:20
Enables Rsc services to marshal large data packets as stream.
Definition: RscStreamReader.hpp:23
Enables Rsc services to marshal large data packets as stream.
Definition: RscStreamWriter.hpp:23
RscStreamWriter(void)
Constructs an empty instance of RscStreamWriter
Writes marshalled data of RSC services.
Definition: RscWriter.hpp:34
std::int32_t int32
The Arp integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:35
@ Write
Specifies write access to the file. Data can be written to the file and the file pointer can be moved...