DecodingLayerContainer stores all DecodingLayer-s and serves as a searching tool for DecodingLayerParser.
| 54 | // DecodingLayerContainer stores all DecodingLayer-s and serves as a |
| 55 | // searching tool for DecodingLayerParser. |
| 56 | type 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…