Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 84 for original (0.34 sec)

  1. src/go/types/instantiate_test.go

    	typ := pkg.Scope().Lookup("T").Type().(*Named)
    	obj, _, _ := LookupFieldOrMethod(typ, false, pkg, "m")
    	if obj == nil {
    		t.Fatalf(`LookupFieldOrMethod(%s, "m") = %v, want func m`, typ, obj)
    	}
    
    	// Verify that the original method is not mutated by instantiating T (this
    	// bug manifested when subst did not return a new signature).
    	want := "func (T[P]).m()"
    	if got := stripAnnotations(ObjectString(obj, RelativeTo(pkg))); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/sha3/sha3.go

    // number of output bytes. It panics if any output has already been read.
    func (d *state) Sum(in []byte) []byte {
    	if d.state != spongeAbsorbing {
    		panic("sha3: Sum after Read")
    	}
    
    	// Make a copy of the original hash so that caller can keep writing
    	// and summing.
    	dup := d.clone()
    	hash := make([]byte, dup.outputLen, 64) // explicit cap to allow stack allocation
    	dup.Read(hash)
    	return append(in, hash...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/context.go

    type Context struct {
    	mu        sync.Mutex
    	typeMap   map[string][]ctxtEntry // type hash -> instances entries
    	nextID    int                    // next unique ID
    	originIDs map[Type]int           // origin type -> unique ID
    }
    
    type ctxtEntry struct {
    	orig     Type
    	targs    []Type
    	instance Type // = orig[targs]
    }
    
    // NewContext creates a new Context.
    func NewContext() *Context {
    	return &Context{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:29:21 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go

    					if fnDecl, ok := decl.(*ast.FuncDecl); ok {
    						if fn, ok := info.Defs[fnDecl.Name].(*types.Func); ok {
    							fnDecls[fn] = fnDecl
    						}
    					}
    				}
    			}
    		}
    		// TODO: set f = f.Origin() here.
    		return fnDecls[f]
    	}
    }
    
    // isMethodNamed returns true if f is a method defined
    // in package with the path pkgPath with a name in names.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/net/lookup_windows_test.go

    	testenv.MustHaveExternalNetwork(t)
    
    	for _, addr := range lookupTestIPs {
    		names, err := LookupAddr(addr)
    		if err != nil {
    			// The DNSError type stores the error as a string, so it cannot wrap the
    			// original error code and we cannot check for it here. However, we can at
    			// least use its error string to identify the correct localized text for
    			// the error to skip.
    			var DNS_ERROR_RCODE_SERVER_FAILURE syscall.Errno = 9002
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. src/syscall/exec_libc.go

    		if TIOCSCTTY == 0 {
    			err1 = ENOSYS
    			goto childerror
    		}
    		err1 = ioctl(uintptr(sys.Ctty), uintptr(TIOCSCTTY), 0)
    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// Restore original rlimit.
    	if rlim != nil {
    		setrlimit1(RLIMIT_NOFILE, unsafe.Pointer(rlim))
    	}
    
    	// Time to exec.
    	err1 = execve(
    		uintptr(unsafe.Pointer(argv0)),
    		uintptr(unsafe.Pointer(&argv[0])),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. src/internal/godebug/godebug.go

    // available to other packages. These settings are often used for compatibility
    // tweaks, when we need to change a default behavior but want to let users
    // opt back in to the original. For example GODEBUG=http2server=0 disables
    // HTTP/2 support in the net/http server.
    //
    // In typical usage, code should declare a Setting as a global
    // and then call Value each time the current setting value is needed:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/net/addrselect.go

    		if commonA > commonB {
    			return preferDA
    		}
    		if commonA < commonB {
    			return preferDB
    		}
    	}
    
    	// Rule 10: Otherwise, leave the order unchanged.
    	// If DA preceded DB in the original list, prefer DA.
    	// Otherwise, prefer DB.
    	return false // "equal"
    }
    
    type policyTableEntry struct {
    	Prefix     netip.Prefix
    	Precedence uint8
    	Label      uint8
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 00:24:06 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. src/net/http/httputil/dump.go

    // an [http.Request]. In particular, the order and case of header field
    // names are lost. The order of values in multi-valued headers is kept
    // intact. HTTP/2 requests are dumped in HTTP/1.x form, not in their
    // original binary representations.
    //
    // If body is true, DumpRequest also returns the body. To do so, it
    // consumes req.Body and then replaces it with a new [io.ReadCloser]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/type.go

    // license that can be found in the LICENSE file.
    
    package syntax
    
    import "go/constant"
    
    // A Type represents a type of Go.
    // All types implement the Type interface.
    // (This type originally lived in types2. We moved it here
    // so we could depend on it from other packages without
    // introducing an import cycle.)
    type Type interface {
    	// Underlying returns the underlying type of a type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top