MCPcopy Create free account
hub / github.com/Edgio/vflow / NewSFDecoder

Function NewSFDecoder

sflow/decoder.go:87–92  ·  view source on GitHub ↗

NewSFDecoder constructs new sflow decoder

(r io.ReadSeeker, f []uint32)

Source from the content-addressed store, hash-verified

85
86// NewSFDecoder constructs new sflow decoder
87func NewSFDecoder(r io.ReadSeeker, f []uint32) SFDecoder {
88 return SFDecoder{
89 reader: r,
90 filter: f,
91 }
92}
93
94// SFDecode decodes sFlow data
95func (d *SFDecoder) SFDecode() (*SFDatagram, error) {

Callers 6

sFlowWorkerMethod · 0.92
TestSFHeaderDecodeFunction · 0.85
TestGetSampleInfoFunction · 0.85
TestSFDecodeFunction · 0.85
TestDecodeSampleHeaderFunction · 0.85
BenchmarkSFDecodeFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestSFHeaderDecodeFunction · 0.68
TestGetSampleInfoFunction · 0.68
TestSFDecodeFunction · 0.68
TestDecodeSampleHeaderFunction · 0.68
BenchmarkSFDecodeFunction · 0.68