NewWriter returns a new writer object, for writing packet data out to the given writer. If this is a new empty writer (as opposed to an append), you must call WriteFileHeader before WritePacket. Packet timestamps are written witn microsecond precision. Write a new file: f, _ := os.Create("/tmp/fil
(w io.Writer)
| 72 | // w2.WritePacket(gopacket.CaptureInfo{...}, data2) |
| 73 | // f2.Close() |
| 74 | func NewWriter(w io.Writer) *Writer { |
| 75 | return &Writer{w: w, tsScaler: nanosPerMicro} |
| 76 | } |
| 77 | |
| 78 | // WriteFileHeader writes a file header out to the writer. |
| 79 | // This must be called exactly once per output. |
no outgoing calls
searching dependent graphs…