X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FPacket.hh;h=1a5e42fed31bc696cae6913194f535d268e0a99a;hb=2a97ae825077e5b75aee35b1c1ada221a4ae7b26;hp=00956126ea1185fb64b5e8eb7f2e5cd17edb38f0;hpb=26095329ef78e94929ad7ab14480dc1a0edecff8;p=chaz%2Fyoink diff --git a/src/Moof/Packet.hh b/src/Moof/Packet.hh index 0095612..1a5e42f 100644 --- a/src/Moof/Packet.hh +++ b/src/Moof/Packet.hh @@ -32,6 +32,9 @@ public: Packet(size_t size = PAGE_SIZE); Packet(const char* data, size_t size); + Packet(const Packet& copy); + Packet& operator=(const Packet& copy); + ~Packet(); Packet& operator<<(bool value); @@ -63,6 +66,9 @@ public: size_t read(void* bytes, size_t size); + void clear(); + + const char* bytes() const { return mBuffer + mR;