Size returns the size of the CIDR prefix address in bytes. Used in the size estimation of the runtime cost.
()
| 610 | // Size returns the size of the CIDR prefix address in bytes. |
| 611 | // Used in the size estimation of the runtime cost. |
| 612 | func (c CIDR) Size() ref.Val { |
| 613 | return types.Int(int64(math.Ceil(float64(c.Prefix.Bits()) / 8))) |
| 614 | } |
| 615 | |
| 616 | // --- Static Validators --- |
| 617 |