MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Size

Method Size

ext/network.go:558–560  ·  view source on GitHub ↗

Size returns the size of the IP address in bytes. Used in the size estimation of the runtime cost.

()

Source from the content-addressed store, hash-verified

556// Size returns the size of the IP address in bytes.
557// /Used in the size estimation of the runtime cost.
558func (i IP) Size() ref.Val {
559 return types.Int(int64(math.Ceil(float64(i.Addr.BitLen()) / 8)))
560}
561
562// CIDR represents the CIDR network mask format.
563type CIDR struct {

Callers

nothing calls this directly

Calls 1

IntTypeAlias · 0.92

Tested by

no test coverage detected