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

Function addressAndMask

runtime/sam/expr/function/ip.go:67–76  ·  view source on GitHub ↗
(sctx *super.Context, address, mask super.Value)

Source from the content-addressed store, hash-verified

65}
66
67func addressAndMask(sctx *super.Context, address, mask super.Value) super.Value {
68 val, err := sup.NewBSUPMarshalerWithContext(sctx).Marshal(struct {
69 Address super.Value `super:"address"`
70 Mask super.Value `super:"mask"`
71 }{address, mask})
72 if err != nil {
73 panic(err)
74 }
75 return val
76}
77
78type CIDRMatch struct {
79 sctx *super.Context

Callers 1

CallMethod · 0.70

Calls 2

MarshalMethod · 0.45

Tested by

no test coverage detected