DecodingLayerSparse is a sparse array-based implementation of DecodingLayerContainer. Each DecodingLayer is addressed in an allocated slice by LayerType value itself. Though this is the fastest container it may be memory-consuming if used with big LayerType values.
| 72 | // fastest container it may be memory-consuming if used with big |
| 73 | // LayerType values. |
| 74 | type DecodingLayerSparse []DecodingLayer |
| 75 | |
| 76 | // Put implements DecodingLayerContainer interface. |
| 77 | func (dl DecodingLayerSparse) Put(d DecodingLayer) DecodingLayerContainer { |
no outgoing calls
no test coverage detected