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

Function decodeExtSwitchData

sflow/flow_sample.go:270–278  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

268}
269
270func decodeExtSwitchData(r io.Reader) (*ExtSwitchData, error) {
271 var es = new(ExtSwitchData)
272
273 if err := es.unmarshal(r); err != nil {
274 return nil, err
275 }
276
277 return es, nil
278}
279
280func decodeExtRouterData(r io.Reader, l uint32) (*ExtRouterData, error) {
281 var er = new(ExtRouterData)

Callers 1

decodeFlowSampleFunction · 0.85

Calls 1

unmarshalMethod · 0.45

Tested by

no test coverage detected