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

Method DecodeFromBytes

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

DecodeFromBytes resets the internal state of this layer to the state defined by the passed-in bytes. Slices in the DecodingLayer may reference the passed-in data, so care should be taken to copy it first should later modification of data be required before the DecodingLayer is discarded.

(data []byte, df DecodeFeedback)

Source from the content-addressed store, hash-verified

33 // first should later modification of data be required before the
34 // DecodingLayer is discarded.
35 DecodeFromBytes(data []byte, df DecodeFeedback) error
36 // CanDecode returns the set of LayerTypes this DecodingLayer can
37 // decode. For Layers that are also DecodingLayers, this will most
38 // often be that Layer's LayerType().

Callers 1

LayersDecoderFunction · 0.65

Implementers 1

LCMlayers/lcm.go

Calls

no outgoing calls

Tested by

no test coverage detected