Package-level declarations
Types
Number with a byte layout and semantics optimized for CIDR/IP operations. The maximum number of addresses inside an IP address space is 2^32 for IPv4 and 2^128 for IPv6. Hence, 32/128-bit unsigned integers are not enough to represent the size of /0 networks, and an additional bit is needed. At the same time, the actual number of bytes used for addresses and netmasks is 4/16, which is why (by default) a CidrNumber's byte representation is truncated to 4/16 bytes to keep it efficient for CIDR operations.
Functions
In-place logical AND
operation, modifying the receiver ByteArray. Returns the number of modified bits
Compares this ByteArray to other interpreted as an unsigned BE (network order)
IN-PLACE inversion
Converts the UInt value to its IPv4 address representation in the form of a 4-byte-long ByteArray. Each byte in the array corresponds to one octet of the IPv4 address, arranged in network byte order (big-endian).
Converts the UInt value to its IPv4 address representation in the form of a 4-byte-long ByteArray. Each byte in the array corresponds to one octet of the IPv4 address, arranged in network byte order (big-endian). Any values larger than UInt.MAX_VALUE will be truncated to four bytes