Size returns the size of the IP address in bytes. Used in the size estimation of the runtime cost.
()
| 556 | // Size returns the size of the IP address in bytes. |
| 557 | // /Used in the size estimation of the runtime cost. |
| 558 | func (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. |
| 563 | type CIDR struct { |