34#include <NDEVR/Buffer.h>
35#include <NDEVR/BinaryFile.h>
53 struct NDEVRSERVERCLIENT_API NDEVRDataPacket
59 NDEVRDataPacket(NDEVRDataPacket&& other);
63 NDEVRDataPacket& operator=(NDEVRDataPacket&& other)
noexcept;
67 NDEVRDataPacket(
const Buffer<uint01>& other,
bool generate_checksum);
71 NDEVRDataPacket(
const HighCapacityBuffer<uint01>& other,
bool generate_checksum);
75 NDEVRDataPacket(HighCapacityBuffer<uint01>&& other,
bool generate_checksum);
79 NDEVRDataPacket(BinaryFile&& bf,
bool generate_checksum);
84 BinaryFile& binaryFile();
89 uint08 addData(uint01* buffer, uint08 size);
94 uint08 pullData(uint01* buffer, uint08 max_size);
97 uint08 dataSize()
const;
100 void updatePointer(uint08 forward);
104 void getProgress(ProgressInfo& info, uint08 extra_size)
const;
108 bool isComplete(uint08 extra_size)
const;
111 bool isComplete()
const;
114 bool hasStarted()
const;
117 bool isValid()
const;
120 void setupPacketHeader(
bool generate_checksum);
123 uint04 checksum()
const;
124 NDEVRPacketHeader packet_header;
125 uint08 handled_size =
sizeof(NDEVRPacketHeader);
Used with InfoPipe to signal that the system will be using progress.
The primary namespace for the NDEVR SDK.
uint64_t uint08
-Defines an alias representing an 8 byte, unsigned integer
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...