/external/grpc-grpc-java/services/src/main/java/io/grpc/services/ |
D | InetAddressUtil.java | 40 int[] hextets = new int[IPV6_PART_COUNT]; in toAddrString() local 41 for (int i = 0; i < hextets.length; i++) { in toAddrString() 42 hextets[i] = Ints.fromBytes((byte) 0, (byte) 0, bytes[2 * i], bytes[2 * i + 1]); in toAddrString() 44 compressLongestRunOfZeroes(hextets); in toAddrString() 45 return hextetsToIPv6String(hextets); in toAddrString() 48 private static void compressLongestRunOfZeroes(int[] hextets) { in compressLongestRunOfZeroes() argument 52 for (int i = 0; i < hextets.length + 1; i++) { in compressLongestRunOfZeroes() 53 if (i < hextets.length && hextets[i] == 0) { in compressLongestRunOfZeroes() 67 Arrays.fill(hextets, bestRunStart, bestRunStart + bestRunLength, -1); in compressLongestRunOfZeroes() 71 private static String hextetsToIPv6String(int[] hextets) { in hextetsToIPv6String() argument [all …]
|
/external/openscreen/platform/base/ |
D | ip_address.h | 56 explicit constexpr IPAddress(const std::array<uint16_t, 8>& hextets) in IPAddress() argument 57 : IPAddress(hextets[0], in IPAddress() 58 hextets[1], in IPAddress() 59 hextets[2], in IPAddress() 60 hextets[3], in IPAddress() 61 hextets[4], in IPAddress() 62 hextets[5], in IPAddress() 63 hextets[6], in IPAddress() 64 hextets[7]) {} in IPAddress() 66 explicit constexpr IPAddress(const uint16_t (&hextets)[8]) in IPAddress() [all …]
|
D | ip_address.cc | 123 uint16_t hextets[8]; in ParseV6() local 131 &hextets[0], &hextets[1], &hextets[2], &hextets[3], &hextets[4], in ParseV6() 132 &hextets[5], &hextets[6], &hextets[7], &chars_scanned) != 8 || in ParseV6() 136 return IPAddress(hextets); in ParseV6()
|
D | ip_address_unittest.cc | 113 const uint16_t hextets[] = {0x0102, 0x0304, 0x0506, 0x0708, in TEST() local 115 IPAddress address2(hextets); in TEST()
|
/external/guava/guava/src/com/google/common/net/ |
D | InetAddresses.java | 398 int[] hextets = new int[IPV6_PART_COUNT]; in toAddrString() local 399 for (int i = 0; i < hextets.length; i++) { in toAddrString() 400 hextets[i] = Ints.fromBytes((byte) 0, (byte) 0, bytes[2 * i], bytes[2 * i + 1]); in toAddrString() 402 compressLongestRunOfZeroes(hextets); in toAddrString() 403 return hextetsToIPv6String(hextets); in toAddrString() 414 private static void compressLongestRunOfZeroes(int[] hextets) { in compressLongestRunOfZeroes() argument 418 for (int i = 0; i < hextets.length + 1; i++) { in compressLongestRunOfZeroes() 419 if (i < hextets.length && hextets[i] == 0) { in compressLongestRunOfZeroes() 433 Arrays.fill(hextets, bestRunStart, bestRunStart + bestRunLength, -1); in compressLongestRunOfZeroes() 445 private static String hextetsToIPv6String(int[] hextets) { in hextetsToIPv6String() argument [all …]
|
/external/guava/android/guava/src/com/google/common/net/ |
D | InetAddresses.java | 402 int[] hextets = new int[IPV6_PART_COUNT]; in toAddrString() local 403 for (int i = 0; i < hextets.length; i++) { in toAddrString() 404 hextets[i] = Ints.fromBytes((byte) 0, (byte) 0, bytes[2 * i], bytes[2 * i + 1]); in toAddrString() 406 compressLongestRunOfZeroes(hextets); in toAddrString() 407 return hextetsToIPv6String(hextets); in toAddrString() 418 private static void compressLongestRunOfZeroes(int[] hextets) { in compressLongestRunOfZeroes() argument 422 for (int i = 0; i < hextets.length + 1; i++) { in compressLongestRunOfZeroes() 423 if (i < hextets.length && hextets[i] == 0) { in compressLongestRunOfZeroes() 437 Arrays.fill(hextets, bestRunStart, bestRunStart + bestRunLength, -1); in compressLongestRunOfZeroes() 449 private static String hextetsToIPv6String(int[] hextets) { in hextetsToIPv6String() argument [all …]
|
/external/python/cpython3/Lib/ |
D | ipaddress.py | 1734 def _compress_hextets(cls, hextets): argument 1754 for index, hextet in enumerate(hextets): 1772 if best_doublecolon_end == len(hextets): 1773 hextets += [''] 1774 hextets[best_doublecolon_start:best_doublecolon_end] = [''] 1777 hextets = [''] + hextets 1779 return hextets 1802 hextets = ['%x' % int(hex_str[x:x+4], 16) for x in range(0, 32, 4)] 1804 hextets = cls._compress_hextets(hextets) 1805 return ':'.join(hextets)
|
/external/python/ipaddress/ |
D | ipaddress.py | 1882 def _compress_hextets(cls, hextets): argument 1902 for index, hextet in enumerate(hextets): 1920 if best_doublecolon_end == len(hextets): 1921 hextets += [''] 1922 hextets[best_doublecolon_start:best_doublecolon_end] = [''] 1925 hextets = [''] + hextets 1927 return hextets 1950 hextets = ['%x' % int(hex_str[x:x + 4], 16) for x in range(0, 32, 4)] 1952 hextets = cls._compress_hextets(hextets) 1953 return ':'.join(hextets)
|
/external/openscreen/cast/streaming/ |
D | sender_unittest.cc | 119 std::array<uint16_t, 8> hextets{}; in SimulatedNetworkPipe() local 120 hextets[0] = 0x2001; in SimulatedNetworkPipe() 121 hextets[1] = 0x0db8; in SimulatedNetworkPipe() 124 memcpy(&hextets[2], &this_pointer, sizeof(this_pointer)); in SimulatedNetworkPipe() 125 local_endpoint_ = IPEndpoint{IPAddress(hextets), 2344}; in SimulatedNetworkPipe()
|