MCPcopy
hub / github.com/google/gopacket / Write

Method Write

pcapgo/ngwrite_test.go:219–221  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

217type ngDevNull struct{}
218
219func (w *ngDevNull) Write(p []byte) (n int, err error) {
220 return len(p), nil
221}
222
223func BenchmarkNgWritePacket(b *testing.B) {
224 ci := gopacket.CaptureInfo{

Callers 14

mainFunction · 0.80
DecodeFromBytesMethod · 0.80
ChecksumValidMethod · 0.80
TestIPv6JumbogramDecodeFunction · 0.80
writeOptionsMethod · 0.80
writeSectionHeaderMethod · 0.80
AddInterfaceMethod · 0.80
WriteInterfaceStatsMethod · 0.80
WritePacketMethod · 0.80
WriteFileHeaderMethod · 0.80
writePacketHeaderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected