43 lines
620 B
C++
43 lines
620 B
C++
#pragma once
|
|
|
|
#include "EHS.h"
|
|
#include "Serializer.h"
|
|
|
|
#include "Utils.h"
|
|
|
|
namespace ehs
|
|
{
|
|
class Fragments
|
|
{
|
|
private:
|
|
Header header;
|
|
Serializer<>* data;
|
|
UInt_64 size;
|
|
|
|
public:
|
|
~Fragments();
|
|
|
|
Fragments();
|
|
|
|
Fragments(const Header& header, const Serializer<>& payload);
|
|
|
|
Fragments(const Header& header, const UInt_64 size);
|
|
|
|
Fragments(const Fragments& frags);
|
|
|
|
Fragments& operator=(const Fragments& frags);
|
|
|
|
operator const Serializer<>* () const;
|
|
|
|
operator Serializer<>* ();
|
|
|
|
Header GetHeader() const;
|
|
|
|
UInt_64 Size() const;
|
|
|
|
bool IsComplete() const;
|
|
|
|
Packet Combine() const;
|
|
};
|
|
}
|