MCPcopy Create free account
hub / github.com/brimdata/super / IPValue

Function IPValue

vector/ip.go:34–48  ·  view source on GitHub ↗
(val Any, slot uint32)

Source from the content-addressed store, hash-verified

32}
33
34func IPValue(val Any, slot uint32) netip.Addr {
35 switch val := val.(type) {
36 case *IP:
37 return val.Values[slot]
38 case *Const:
39 return IPValue(val.Any, 0)
40 case *Dict:
41 slot = uint32(val.Index[slot])
42 return val.Any.(*IP).Values[slot]
43 case *View:
44 slot = val.Index[slot]
45 return IPValue(val.Any, slot)
46 }
47 panic(val)
48}

Callers 7

compareIPsMethod · 0.92
NewSearchFunction · 0.92
cidrMatchFunction · 0.92
singleIPMethod · 0.92
ipMaskMethod · 0.92
intMaskMethod · 0.92
CallMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected