MCPcopy Index your code
hub / github.com/google/gopacket / AddDecodingLayer

Method AddDecodingLayer

parser.go:200–202  ·  view source on GitHub ↗

AddDecodingLayer adds a decoding layer to the parser. This adds support for the decoding layer's CanDecode layers to the parser... should they be encountered, they'll be parsed.

(d DecodingLayer)

Source from the content-addressed store, hash-verified

198// the decoding layer's CanDecode layers to the parser... should they be
199// encountered, they'll be parsed.
200func (l *DecodingLayerParser) AddDecodingLayer(d DecodingLayer) {
201 l.SetDecodingLayerContainer(l.dlc.Put(d))
202}
203
204// SetTruncated is used by DecodingLayers to set the Truncated boolean in the
205// DecodingLayerParser. Users should simply read Truncated after calling

Callers

nothing calls this directly

Calls 2

PutMethod · 0.65

Tested by

no test coverage detected