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

Method Decode

layers/enums_generated.go:141–143  ·  view source on GitHub ↗

Decoder calls IPProtocolMetadata.DecodeWith's decoder.

(data []byte, p gopacket.PacketBuilder)

Source from the content-addressed store, hash-verified

139
140// Decoder calls IPProtocolMetadata.DecodeWith's decoder.
141func (a IPProtocol) Decode(data []byte, p gopacket.PacketBuilder) error {
142 return IPProtocolMetadata[a].DecodeWith.Decode(data, p)
143}
144
145// String returns IPProtocolMetadata.Name.
146func (a IPProtocol) String() string {

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.65

Tested by

no test coverage detected