Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Attempts to merge the packet or chunk with the existing data. Returns
details of the operation's success or failure.

Args:
new = TCPPacket or TCPChunk
new_seq_callback = callable(int) or None

new_seq_callback is a function that will be called with sequence numbers
of the start of data that has arrived for the first time.
(more...)

src/p/c/pcap2har-HEAD/pcap2har/tcp/direction.py   pcap2har(Download)
        '''
        chunk = tcp.Chunk()
        chunk.merge(pkt, self.create_merge_callback(pkt))
        if self.seq_start and chunk.seq_start == self.seq_start:
            self.final_data_chunk = chunk