def pop_data(self, nbytes):
last_timestamp = <NUM_LIT:0><EOL>data = []<EOL>for packet in self.pop(nbytes):<EOL><INDENT>last_timestamp = packet.timestamp<EOL>data.append(packet.data.data)<EOL><DEDENT>return '<STR_LIT>'.join(data), last_timestamp<EOL>
similar to pop, but returns payload + last timestamp