def METHOD_NAME(self, frame, timestamp=None):
    """ Appends a frame. """
    if timestamp is None:
        timestamp = self._get_timestamp()
    pkt = self.encode_frame(frame, *timestamp)
    self._pcap_file.write(pkt)
    self._pcap_file.flush()
    return pkt