Alien-uv
view release on metacpan or search on metacpan
libuv/src/inet.c view on Meta::CPAN
636465666768697071727374757677787980818283
return
0;
}
static
int
inet_ntop6(const unsigned char
*src
, char
*dst
, size_t size) {
/*
* Note that int32_t and int16_t need only be
"at least"
large enough
* to contain a value of the specified size. On some systems, like
* Crays, there is
no
such thing as an integer variable
with
16 bits.
* Keep this in mind
if
you think this function should have been coded
*/
char tmp[UV__INET6_ADDRSTRLEN],
*tp
;
struct {
int
base, len; } best, cur;
unsigned
int
words[sizeof(struct in6_addr) / sizeof(uint16_t)];
int
i;
/*
* Preprocess:
* Copy the input (bytewise) array into a wordwise array.
* Find the longest run of 0x00's in src[]
for
:: shorthanding.
( run in 3.522 seconds using v1.01-cache-2.11-cpan-94b05bcf43c )