- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SkipAllQuestions (0.19 sec)
-
src/net/cgo_unix.go
buf = (*_C_uchar)(_C_malloc(uintptr(bufSize))) } var p dnsmessage.Parser if _, err := p.Start(unsafe.Slice((*byte)(unsafe.Pointer(buf)), size)); err != nil { return nil, err } p.SkipAllQuestions() resources, err := p.AllAnswers() if err != nil { return nil, err } return resources, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 11.4K bytes - Viewed (0) -
src/vendor/golang.org/x/net/dns/dnsmessage/message.go
} if off, err = skipClass(p.msg, off); err != nil { return &nestedError{"skipping Question Class", err} } p.off = off p.index++ return nil } // SkipAllQuestions skips all Questions. func (p *Parser) SkipAllQuestions() error { for { if err := p.SkipQuestion(); err == ErrSectionDone { return nil } else if err != nil { return err } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 00:09:40 UTC 2024 - 69K bytes - Viewed (0) -
src/net/dnsclient_unix_test.go
if err != nil { t.Fatal("Pack failed:", err) } p, _, err := dnsPacketRoundTrip(c, 42, msg.Questions[0], b) if err != nil { t.Fatalf("dnsPacketRoundTrip failed: %v", err) } p.SkipAllQuestions() as, err := p.AllAnswers() if err != nil { t.Fatal("AllAnswers failed:", err) } if got := as[0].Body.(*dnsmessage.AResource).A; got != TestAddr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 72.4K bytes - Viewed (0)