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

Method decode

layers/sflow.go:714–718  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

712type SFlowCounterDataFormat uint32
713
714func (cdf SFlowCounterDataFormat) decode() (SFlowEnterpriseID, SFlowCounterRecordType) {
715 leftField := cdf >> 12
716 rightField := uint32(0xFFF) & uint32(cdf)
717 return SFlowEnterpriseID(leftField), SFlowCounterRecordType(rightField)
718}
719
720// GetRecords will return a slice of interface types
721// representing records. A type switch can be used to

Callers 9

decodeEthernetCountersFunction · 0.95
decodeVLANCountersFunction · 0.95
decodeLACPCountersFunction · 0.95
decodeProcessorCountersFunction · 0.95
decodeOVSDPCountersFunction · 0.95
decodePortnameCountersFunction · 0.95

Calls 2

SFlowEnterpriseIDTypeAlias · 0.85
SFlowCounterRecordTypeTypeAlias · 0.85

Tested by

no test coverage detected