#pragma once #include "NetUtils.h" #include namespace ehs { class NetFrags { private: Header header; Serializer* data; UInt_64 size; public: ~NetFrags(); NetFrags(); NetFrags(const Header &header, const Serializer &payload); NetFrags(const Header &header, UInt_64 size); NetFrags(NetFrags &&frags) noexcept; NetFrags(const NetFrags &frags); NetFrags &operator=(NetFrags &&frags) noexcept; NetFrags &operator=(const NetFrags &frags); operator Serializer *() const; Header GetHeader() const; UInt_64 Size() const; bool IsComplete() const; Packet Combine() const; }; }