// PktTraceFromArchive reads a given gzip compressed gob encoded PktTrace.  This
// is the standard format for storing a PktTrace to a file.
PktTraceFromArchive reads a given gzip compressed gob encoded PktTrace.  This
is the standard format for storing a PktTrace to a file.
// PktTraceFromArchive reads a given gzip compressed gob encoded PktTrace . This // is the standard format for storing a PktTrace to a file .
func PktTraceFromArchive(r io.Reader) (*PktTrace, error) {
	t := &PktTrace{}
	gz, err := gzip.NewReader(r)
	if err != nil {
		return t, err
	}
	defer gz.Close()
	gd := gob.NewDecoder(gz)
	err = gd.Decode(t)
	return t, err
}
func PktTraceFromArchive ( r io . Reader ) ( * PktTrace , error ) { t := & PktTrace { } gz , err := gzip . NewReader ( r ) if err != nil { return t , err } defer gz . Close ( ) gd := gob . NewDecoder ( gz ) err = gd . Decode ( t ) return t , err }
PktTraceFromArchive reads a given gzip compressed gob encoded PktTrace.
PktTraceFromArchive reads a given gzip compressed gob encoded PktTrace .