Lines Matching defs:ptr
244 HostEntPointer ptr(host);
249 if ((*type == ns_t_cname_or_a && ptr->h_name && ptr->h_aliases[0]) ||
256 OneByteString(env->isolate(), ptr->h_name)).Check();
264 HostentToNames(env, ptr.get(), ret);
267 for (uint32_t i = 0; ptr->h_aliases[i] != nullptr; i++) {
268 auto alias = OneByteString(env->isolate(), ptr->h_aliases[i]);
274 for (uint32_t i = 0; ptr->h_addr_list[i] != nullptr; ++i) {
275 uv_inet_ntop(ptr->h_addrtype, ptr->h_addr_list[i], ip, sizeof(ip));
523 void operator()(char* ptr) const noexcept { ares_free_string(ptr); }
529 unsigned char* ptr = buf + NS_HFIXEDSZ;
532 int status = ares_expand_name(ptr, buf, len, &name_temp, &temp_len);
540 if (ptr + temp_len + NS_QFIXEDSZ > buf + len) {
543 ptr += temp_len + NS_QFIXEDSZ;
548 int status2 = ares_expand_name(ptr, buf, len, &rr_name_temp, &rr_temp_len);
555 ptr += rr_temp_len;
556 if (ptr + NS_RRFIXEDSZ > buf + len) {
560 const int rr_type = cares_get_16bit(ptr);
561 const int rr_len = cares_get_16bit(ptr + 8);
562 ptr += NS_RRFIXEDSZ;
569 int status3 = ares_expand_name(ptr, buf, len,
576 ptr += nsname_temp_len;
580 int status4 = ares_expand_name(ptr, buf, len,
587 ptr += hostmaster_temp_len;
589 if (ptr + 5 * 4 > buf + len) {
593 const unsigned int serial = ReadUint32BE(ptr + 0 * 4);
594 const unsigned int refresh = ReadUint32BE(ptr + 1 * 4);
595 const unsigned int retry = ReadUint32BE(ptr + 2 * 4);
596 const unsigned int expire = ReadUint32BE(ptr + 3 * 4);
597 const unsigned int minttl = ReadUint32BE(ptr + 4 * 4);
631 ptr += rr_len;