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

Method decode

layers/sflow.go:106–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func (sdce SFlowDataSourceExpanded) decode() (SFlowSourceFormat, SFlowSourceValue) {
107 leftField := sdce.SourceIDClass >> 30
108 rightField := uint32(0x3FFFFFFF) & uint32(sdce.SourceIDIndex)
109 return SFlowSourceFormat(leftField), SFlowSourceValue(rightField)
110}
111
112type SFlowSourceFormat uint32
113

Callers 1

decodeCounterSampleFunction · 0.95

Calls 2

SFlowSourceFormatTypeAlias · 0.85
SFlowSourceValueTypeAlias · 0.85

Tested by

no test coverage detected