/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/android/guava/src/com/google/common/net/ |
D | InetAddresses.java | 414 int[] hextets = new int[IPV6_PART_COUNT]; in toAddrString() local 415 for (int i = 0; i < hextets.length; i++) { in toAddrString() 416 hextets[i] = Ints.fromBytes((byte) 0, (byte) 0, bytes[2 * i], bytes[2 * i + 1]); in toAddrString() 418 compressLongestRunOfZeroes(hextets); in toAddrString() 419 return hextetsToIPv6String(hextets); in toAddrString() 430 private static void compressLongestRunOfZeroes(int[] hextets) { in compressLongestRunOfZeroes() argument 434 for (int i = 0; i < hextets.length + 1; i++) { in compressLongestRunOfZeroes() 435 if (i < hextets.length && hextets[i] == 0) { in compressLongestRunOfZeroes() 449 Arrays.fill(hextets, bestRunStart, bestRunStart + bestRunLength, -1); in compressLongestRunOfZeroes() 461 private static String hextetsToIPv6String(int[] hextets) { in hextetsToIPv6String() argument [all …]
|
/external/guava/guava/src/com/google/common/net/ |
D | InetAddresses.java | 414 int[] hextets = new int[IPV6_PART_COUNT]; in toAddrString() local 415 for (int i = 0; i < hextets.length; i++) { in toAddrString() 416 hextets[i] = Ints.fromBytes((byte) 0, (byte) 0, bytes[2 * i], bytes[2 * i + 1]); in toAddrString() 418 compressLongestRunOfZeroes(hextets); in toAddrString() 419 return hextetsToIPv6String(hextets); in toAddrString() 430 private static void compressLongestRunOfZeroes(int[] hextets) { in compressLongestRunOfZeroes() argument 434 for (int i = 0; i < hextets.length + 1; i++) { in compressLongestRunOfZeroes() 435 if (i < hextets.length && hextets[i] == 0) { in compressLongestRunOfZeroes() 449 Arrays.fill(hextets, bestRunStart, bestRunStart + bestRunLength, -1); in compressLongestRunOfZeroes() 461 private static String hextetsToIPv6String(int[] hextets) { in hextetsToIPv6String() argument [all …]
|
/external/python/cpython3/Lib/ |
D | ipaddress.py | 1740 def _compress_hextets(cls, hextets): argument 1760 for index, hextet in enumerate(hextets): 1778 if best_doublecolon_end == len(hextets): 1779 hextets += [''] 1780 hextets[best_doublecolon_start:best_doublecolon_end] = [''] 1783 hextets = [''] + hextets 1785 return hextets 1808 hextets = ['%x' % int(hex_str[x:x+4], 16) for x in range(0, 32, 4)] 1810 hextets = cls._compress_hextets(hextets) 1811 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()
|