Searched refs:addrBytes (Results 1 – 2 of 2) sorted by relevance
179 byte[] addrBytes = (address == null) ? null : address.getAddress(); in contains()180 if (addrBytes == null || addrBytes.length != this.address.length) { in contains()183 NetworkUtils.maskRawAddress(addrBytes, prefixLength); in contains()184 return Arrays.equals(this.address, addrBytes); in contains()
1214 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() argument1215 return bytesToInt(addrBytes) | (int) (uint32(-1) >>> prefixLength); in ipv4BroadcastAddress()1219 public static int bytesToInt(byte[] addrBytes) { in bytesToInt() argument1220 return (uint8(addrBytes[0]) << 24) in bytesToInt()1221 + (uint8(addrBytes[1]) << 16) in bytesToInt()1222 + (uint8(addrBytes[2]) << 8) in bytesToInt()1223 + (uint8(addrBytes[3])); in bytesToInt()