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

Function addressAndMask

runtime/vam/expr/function/networkof.go:206–212  ·  view source on GitHub ↗
(sctx *super.Context, address, mask vector.Any)

Source from the content-addressed store, hash-verified

204}
205
206func addressAndMask(sctx *super.Context, address, mask vector.Any) vector.Any {
207 typ := sctx.MustLookupTypeRecord([]super.Field{
208 {Name: "address", Type: address.Type()},
209 {Name: "mask", Type: mask.Type()},
210 })
211 return vector.NewRecord(typ, []vector.Any{address, mask}, address.Len())
212}

Callers 3

ipMaskMethod · 0.70
intMaskMethod · 0.70
errCIDRRangeFunction · 0.70

Calls 4

NewRecordFunction · 0.92
MustLookupTypeRecordMethod · 0.80
TypeMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected