// CsvString  returns a CSV encoding of the Packet struct.
// Each header type has a unique string that marks the beginning of the CSV
// fields for that particular header.
CsvString  returns a CSV encoding of the Packet struct.
Each header type has a unique string that marks the beginning of the CSV
fields for that particular header.
// CsvString returns a CSV encoding of the Packet struct . // Each header type has a unique string that marks the beginning of the CSV // fields for that particular header .
func (p *Packet) CsvString() string {
	s := make([]string, len(p.Headers))
	for i := range p.Headers {
		if p.Headers[i] == nil {
			break
		}
		s[i] = p.Headers[i].CsvElement()
	}
	return fmt.Sprintf("%d,%s", p.Time.UnixNano(), strings.Join(s, ","))
}
func ( p * Packet ) CsvString ( ) string { s := make ( [ ] string , len ( p . Headers ) ) for i := range p . Headers { if p . Headers [ i ] == nil { break } s [ i ] = p . Headers [ i ] . CsvElement ( ) } return fmt . Sprintf ( " " , p . Time . UnixNano ( ) , strings . Join ( s , " " ) ) }
CsvString  returns a CSV encoding of the Packet struct.
CsvString returns a CSV encoding of the Packet struct .