Lines Matching refs:len
71 struct { int base, len; } best, cur; in inet_ntop6() member
84 best.len = 0; in inet_ntop6()
86 cur.len = 0; in inet_ntop6()
90 cur.base = i, cur.len = 1; in inet_ntop6()
92 cur.len++; in inet_ntop6()
95 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
102 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
105 if (best.base != -1 && best.len < 2) in inet_ntop6()
115 i < (best.base + best.len)) { in inet_ntop6()
124 if (i == 6 && best.base == 0 && (best.len == 6 || in inet_ntop6()
125 (best.len == 7 && words[7] != 0x0001) || in inet_ntop6()
126 (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6()
136 if (best.base != -1 && (best.base + best.len) == ARRAY_SIZE(words)) in inet_ntop6()
154 int len; in uv_inet_pton() local
160 len = p - src; in uv_inet_pton()
161 if (len > UV__INET6_ADDRSTRLEN-1) in uv_inet_pton()
163 memcpy(s, src, len); in uv_inet_pton()
164 s[len] = '\0'; in uv_inet_pton()