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

TypeAlias DecodingLayerSparse

parser.go:74–74  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

72// fastest container it may be memory-consuming if used with big
73// LayerType values.
74type DecodingLayerSparse []DecodingLayer
75
76// Put implements DecodingLayerContainer interface.
77func (dl DecodingLayerSparse) Put(d DecodingLayer) DecodingLayerContainer {

Calls

no outgoing calls

Tested by

no test coverage detected