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

Interface DecodingLayerContainer

parser.go:56–67  ·  view source on GitHub ↗

DecodingLayerContainer stores all DecodingLayer-s and serves as a searching tool for DecodingLayerParser.

Source from the content-addressed store, hash-verified

54// DecodingLayerContainer stores all DecodingLayer-s and serves as a
55// searching tool for DecodingLayerParser.
56type DecodingLayerContainer interface {
57 // Put adds new DecodingLayer to container. The new instance of
58 // the same DecodingLayerContainer is returned so it may be
59 // implemented as a value receiver.
60 Put(DecodingLayer) DecodingLayerContainer
61 // Decoder returns DecodingLayer to decode given LayerType and
62 // true if it was found. If no decoder found, return false.
63 Decoder(LayerType) (DecodingLayer, bool)
64 // LayersDecoder returns DecodingLayerFunc which decodes given
65 // packet, starting with specified LayerType and DecodeFeedback.
66 LayersDecoder(first LayerType, df DecodeFeedback) DecodingLayerFunc
67}
68
69// DecodingLayerSparse is a sparse array-based implementation of
70// DecodingLayerContainer. Each DecodingLayer is addressed in an

Callers 1

NewDecodingLayerParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…