SetDecodingLayerContainer specifies container with decoders. This call replaces all decoders already registered in given instance of DecodingLayerParser.
(dlc DecodingLayerContainer)
| 236 | // call replaces all decoders already registered in given instance of |
| 237 | // DecodingLayerParser. |
| 238 | func (l *DecodingLayerParser) SetDecodingLayerContainer(dlc DecodingLayerContainer) { |
| 239 | l.dlc = dlc |
| 240 | l.decodeFunc = l.dlc.LayersDecoder(l.first, l.df) |
| 241 | } |
| 242 | |
| 243 | // DecodeLayers decodes as many layers as possible from the given data. It |
| 244 | // initially treats the data as layer type 'typ', then uses NextLayerType on |