#pragma once #include "Utils.h" #include 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, UInt_64 size); Fragments(Fragments &&frags) noexcept; Fragments(const Fragments &frags); Fragments &operator=(Fragments &&frags) noexcept; Fragments &operator=(const Fragments &frags); operator Serializer *() const; Header GetHeader() const; UInt_64 Size() const; bool IsComplete() const; Packet Combine() const; }; }