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

Function DecodeIP

primitive.go:289–295  ·  view source on GitHub ↗
(zv scode.Bytes)

Source from the content-addressed store, hash-verified

287}
288
289func DecodeIP(zv scode.Bytes) netip.Addr {
290 var a netip.Addr
291 if err := a.UnmarshalBinary(zv); err != nil {
292 panic(fmt.Errorf("failure trying to decode IP address: %w", err))
293 }
294 return a
295}
296
297func (t *TypeOfIP) ID() int {
298 return IDIP

Callers 15

NewConstFromValueFunction · 0.92
WriteMethod · 0.92
formatPrimitiveFunction · 0.92
decodeNetipAddrMethod · 0.92
decodeNetIPMethod · 0.92
loadAnyWithLockMethod · 0.92
EvalMethod · 0.92
compareValuesFunction · 0.92
CompareIPFunction · 0.92
ComparisonFunction · 0.92
EvalMethod · 0.92
CallMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected