class Net::IPMask
- Net::IPMask
- Net::IPBase
- Reference
- Object
Overview
IPMask is an IP address
Defined in:
net/ip.crClass Method Summary
Instance Method Summary
-
#mask_size
mask_size returns the number of leading ones and total bits in the mask.
-
#to_s
returns the hexadecimal form of mask, with no punctuation.
Instance methods inherited from class Net::IPBase
==(other : self)
==,
hash(hasher)
hash
Constructor methods inherited from class Net::IPBase
new(ptr : Pointer(UInt8), size : Int)new(size : Int)
new(size : Int, &block) new
Class methods inherited from class Net::IPBase
empty
empty
Class Method Detail
Instance Method Detail
def mask_size
#
mask_size returns the number of leading ones and total bits in the mask. If the mask is not in the canonical form--ones followed by zeros--then mask_size returns 0, 0.