(data *[]byte)
| 1267 | } |
| 1268 | |
| 1269 | func (ad *SFlowASDestination) decodePath(data *[]byte) { |
| 1270 | *data, ad.Type = (*data)[4:], SFlowASPathType(binary.BigEndian.Uint32((*data)[:4])) |
| 1271 | *data, ad.Count = (*data)[4:], binary.BigEndian.Uint32((*data)[:4]) |
| 1272 | ad.Members = make([]uint32, ad.Count) |
| 1273 | for i := uint32(0); i < ad.Count; i++ { |
| 1274 | var member uint32 |
| 1275 | *data, member = (*data)[4:], binary.BigEndian.Uint32((*data)[:4]) |
| 1276 | ad.Members[i] = member |
| 1277 | } |
| 1278 | } |
| 1279 | |
| 1280 | func decodeExtendedGatewayFlowRecord(data *[]byte) (SFlowExtendedGatewayFlowRecord, error) { |
| 1281 | eg := SFlowExtendedGatewayFlowRecord{} |
no test coverage detected