()
| 188 | type SFlowDataFormat uint32 |
| 189 | |
| 190 | func (sdf SFlowDataFormat) decode() (SFlowEnterpriseID, SFlowSampleType) { |
| 191 | leftField := sdf >> 12 |
| 192 | rightField := uint32(0xFFF) & uint32(sdf) |
| 193 | return SFlowEnterpriseID(leftField), SFlowSampleType(rightField) |
| 194 | } |
| 195 | |
| 196 | // SFlowEnterpriseID is used to differentiate between the |
| 197 | // official SFlow standard, and other, vendor-specific |
no test coverage detected