- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for byPref (0.12 sec)
-
src/net/dnsclient.go
addrs[i:].shuffleByWeight() } // An MX represents a single DNS MX record. type MX struct { Host string Pref uint16 } // byPref sorts MX records by preference type byPref []*MX // sort reorders MX records as specified in RFC 5321. func (s byPref) sort() { for i := range s { j := randIntn(i + 1) s[i], s[j] = s[j], s[i] } slices.SortFunc(s, func(a, b *MX) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 5.7K bytes - Viewed (0) -
src/net/lookup_plan9.go
} for _, line := range lines { f := getFields(line) if len(f) < 4 { continue } if pref, _, ok := dtoi(f[2]); ok { mx = append(mx, &MX{absDomainName(f[3]), uint16(pref)}) } } byPref(mx).sort() return } func (r *Resolver) lookupNS(ctx context.Context, name string) (ns []*NS, err error) { if systemConf().mustUseGoResolver(r) { return r.goLookupNS(ctx, name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:08:38 UTC 2024 - 9.9K bytes - Viewed (0) -
src/net/lookup_windows.go
for _, p := range validRecs(rec, syscall.DNS_TYPE_MX, name) { v := (*syscall.DNSMXData)(unsafe.Pointer(&p.Data[0])) mxs = append(mxs, &MX{absDomainName(windows.UTF16PtrToString(v.NameExchange)), v.Preference}) } byPref(mxs).sort() return mxs, nil } func (r *Resolver) lookupNS(ctx context.Context, name string) ([]*NS, error) { if systemConf().mustUseGoResolver(r) { return r.goLookupNS(ctx, name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 14.2K bytes - Viewed (0) -
src/net/lookup.go
return nil, &DNSError{ Err: "cannot unmarshal DNS message", Name: name, Server: server, } } mxs = append(mxs, &MX{Host: mx.MX.String(), Pref: mx.Pref}) } byPref(mxs).sort() return mxs, nil } // goLookupNS returns the NS records for name. func (r *Resolver) goLookupNS(ctx context.Context, name string) ([]*NS, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 28.6K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-tuple.h.pump
namespace gtest_internal { // ByRef<T>::type is T if T is a reference; otherwise it's const T&. template <typename T> struct ByRef { typedef const T& type; }; // NOLINT template <typename T> struct ByRef<T&> { typedef T& type; }; // NOLINT // A handy wrapper for ByRef. #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile.go
// Size uint8 // Type uint16 // Add int64 // Sym symRef // } // // Aux [...]struct { // Type uint8 // Sym symRef // } // // Data [...]byte // // // blocks only used by tools (objdump, nm) // // RefNames [...]struct { // referenced symbol names // Sym symRef // Name string // // TODO: include ABI version as well? // }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 23.8K bytes - Viewed (0) -
src/cmd/internal/obj/objfile.go
} var b goobj.HashType copy(b[:], h.Sum(nil)) return b } func makeSymRef(s *LSym) goobj.SymRef { if s == nil { return goobj.SymRef{} } if s.PkgIdx == 0 || !s.Indexed() { fmt.Printf("unindexed symbol reference: %v\n", s) panic("unindexed symbol reference") } return goobj.SymRef{PkgIdx: uint32(s.PkgIdx), SymIdx: uint32(s.SymIdx)} } func (w *writer) Reloc(r *Reloc) { o := &w.tmpReloc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-tuple.h
namespace gtest_internal { // ByRef<T>::type is T if T is a reference; otherwise it's const T&. template <typename T> struct ByRef { typedef const T& type; }; // NOLINT template <typename T> struct ByRef<T&> { typedef T& type; }; // NOLINT // A handy wrapper for ByRef. #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
if (cloned == func) continue; // Patch up the op attribute to point to the new function. for (NamedAttribute attr : op->getAttrs()) { auto symref = mlir::dyn_cast<FlatSymbolRefAttr>(attr.getValue()); if (!symref) continue; if (symref.getValue() != func.getName()) continue; op->setAttr(attr.getName(), FlatSymbolRefAttr::get(op->getContext(), cloned.getName())); break;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 21 04:42:54 UTC 2024 - 45.4K bytes - Viewed (0)