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

Method decode

layers/sflow.go:95–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93type SFlowDataSource int32
94
95func (sdc SFlowDataSource) decode() (SFlowSourceFormat, SFlowSourceValue) {
96 leftField := sdc >> 30
97 rightField := uint32(0x3FFFFFFF) & uint32(sdc)
98 return SFlowSourceFormat(leftField), SFlowSourceValue(rightField)
99}
100
101type SFlowDataSourceExpanded struct {
102 SourceIDClass SFlowSourceFormat

Callers 3

decodeFlowSampleFunction · 0.95
decodeCounterSampleFunction · 0.95
DecodeFromBytesMethod · 0.45

Calls 2

SFlowSourceFormatTypeAlias · 0.85
SFlowSourceValueTypeAlias · 0.85

Tested by

no test coverage detected