func (d DecodeFunc) Decode(data []byte, p PacketBuilder) error {
	return d(data, p)
}
Decode implements Decoder by calling itself.
package gopacket
import (
	"errors"
)
type DecodeFeedback interface {
	SetTruncated()
}
type nilDecodeFeedback struct{}
func (nilDecodeFeedback) SetTruncated() {}
var NilDecodeFeedback DecodeFeedback = nilDecodeFeedback{}
type PacketBuilder interface {
	DecodeFeedback
	AddLayer(l Layer)
	SetLinkLayer(LinkLayer)
	SetNetworkLayer(NetworkLayer)
	SetTransportLayer(TransportLayer)
	SetApplicationLayer(ApplicationLayer)
	SetErrorLayer(ErrorLayer)
	NextDecoder(next Decoder) error
	DumpPacketData()
	DecodeOptions() *DecodeOptions
}
type Decoder interface {
	Decode([]byte, PacketBuilder) error
}
type DecodeFunc func([]byte, PacketBuilder) error