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

Method decode

layers/sflow.go:437–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

435type SFlowFlowDataFormat uint32
436
437func (fdf SFlowFlowDataFormat) decode() (SFlowEnterpriseID, SFlowFlowRecordType) {
438 leftField := fdf >> 12
439 rightField := uint32(0xFFF) & uint32(fdf)
440 return SFlowEnterpriseID(leftField), SFlowFlowRecordType(rightField)
441}
442
443func (fs SFlowFlowSample) GetRecords() []SFlowRecord {
444 return fs.Records

Calls 2

SFlowEnterpriseIDTypeAlias · 0.85
SFlowFlowRecordTypeTypeAlias · 0.85

Tested by

no test coverage detected