// Archive saves a PktTrace to a gzip compressed gob encoded file.
Archive saves a PktTrace to a gzip compressed gob encoded file.
// Archive saves a PktTrace to a gzip compressed gob encoded file .
func (t *PktTrace) Archive(w io.Writer) error {
	gz, err := gzip.NewWriterLevel(w, gzip.BestSpeed)
	if err != nil {
		return err
	}
	defer gz.Close()
	ge := gob.NewEncoder(gz)
	return ge.Encode(t)
}
func ( t * PktTrace ) Archive ( w io . Writer ) error { gz , err := gzip . NewWriterLevel ( w , gzip . BestSpeed ) if err != nil { return err } defer gz . Close ( ) ge := gob . NewEncoder ( gz ) return ge . Encode ( t ) }
Archive saves a PktTrace to a gzip compressed gob encoded file.
Archive saves a PktTrace to a gzip compressed gob encoded file .