X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketParser.hh;h=b5ef0ea7a0e7b6dff10a05fb82965bb5ab89027b;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=8c218e06bb347e236034e959d69eaff8675a2ffd;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git diff --git a/Packets/PacketParser.hh b/Packets/PacketParser.hh index 8c218e0..b5ef0ea 100644 --- a/Packets/PacketParser.hh +++ b/Packets/PacketParser.hh @@ -354,6 +354,16 @@ namespace senf { parsers when access to previous or following packets is needed e.g. for calculating checksums etc. */ + void resize(size_type oldSize, size_type newSize); ///< Resize data container + /**< This command will erase or insert bytes from/into the + data container at the end of the parser (at i() + \a + newSize). If \a oldSize is > \a newSize, bytes will be + removed, otherwise bytes will be inserted. + + \warning This may invalidate iterators and other + parsers. The current parser itself is automatically + updated */ + private: data_iterator end() const;