Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Implementation (0.21 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/counter/counter.go

    			c.releaseLock(state)
    			return
    		}
    	}
    }
    
    // Read reads the given counter.
    // This is the implementation of x/telemetry/counter/countertest.ReadCounter.
    func Read(c *Counter) (uint64, error) {
    	if c.file.current.Load() == nil {
    		return c.state.load().extra(), nil
    	}
    	pf, err := readFile(c.file)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. src/os/exec.go

    	Env []string
    	// Files specifies the open files inherited by the new process. The
    	// first three entries correspond to standard input, standard output, and
    	// standard error. An implementation may support additional entries,
    	// depending on the underlying operating system. A nil entry corresponds
    	// to that file being closed when the process starts.
    	// On Unix systems, StartProcess will change these File values
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/unify.go

    package types2
    
    import (
    	"bytes"
    	"fmt"
    	"sort"
    	"strings"
    )
    
    const (
    	// Upper limit for recursion depth. Used to catch infinite recursions
    	// due to implementation issues (e.g., see issues go.dev/issue/48619, go.dev/issue/48656).
    	unificationDepthLimit = 50
    
    	// Whether to panic when unificationDepthLimit is reached.
    	// If disabled, a recursion depth overflow results in a (quiet)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. src/go/types/unify.go

    package types
    
    import (
    	"bytes"
    	"fmt"
    	"sort"
    	"strings"
    )
    
    const (
    	// Upper limit for recursion depth. Used to catch infinite recursions
    	// due to implementation issues (e.g., see issues go.dev/issue/48619, go.dev/issue/48656).
    	unificationDepthLimit = 50
    
    	// Whether to panic when unificationDepthLimit is reached.
    	// If disabled, a recursion depth overflow results in a (quiet)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  5. src/hash/crc32/crc32_test.go

    // the two "update" functions return the same result.
    func testCrossCheck(t *testing.T, crcFunc1, crcFunc2 func(crc uint32, b []byte) uint32) {
    	// The AMD64 implementation has some cutoffs at lengths 168*3=504 and
    	// 1344*3=4032. We should make sure lengths around these values are in the
    	// list.
    	lengths := []int{0, 1, 2, 3, 4, 5, 10, 16, 50, 63, 64, 65, 100,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		if lhs, ok := got.Underlying().(*types.Basic); ok {
    			return rhs.Info()&types.IsConstType == lhs.Info()&types.IsConstType
    		}
    	}
    	return types.AssignableTo(want, got)
    }
    
    // MakeReadFile returns a simple implementation of the Pass.ReadFile function.
    func MakeReadFile(pass *analysis.Pass) func(filename string) ([]byte, error) {
    	return func(filename string) ([]byte, error) {
    		if err := CheckReadable(pass, filename); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/net/nettest/conntest.go

    // net.Listener (if there is one), and should not be nil.
    type MakePipe func() (c1, c2 net.Conn, stop func(), err error)
    
    // TestConn tests that a net.Conn implementation properly satisfies the interface.
    // The tests should not produce any false positives, but may experience
    // false negatives. Thus, some issues may only be detected when the test is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api.go

    // ImportMode is reserved for future use.
    type ImportMode int
    
    // An ImporterFrom resolves import paths to packages; it
    // supports vendoring per https://golang.org/s/go15vendor.
    // Use go/importer to obtain an ImporterFrom implementation.
    type ImporterFrom interface {
    	// Importer is present for backward-compatibility. Calling
    	// Import(path) is the same as calling ImportFrom(path, "", 0);
    	// i.e., locally vendored packages may not be found.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. src/math/big/float.go

    // x and y must have a non-empty mantissa and valid exponent.
    func (z *Float) uadd(x, y *Float) {
    	// Note: This implementation requires 2 shifts most of the
    	// time. It is also inefficient if exponents or precisions
    	// differ by wide margins. The following article describes
    	// an efficient (but much more complicated) implementation
    	// compatible with the internal representation used here:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/fsys/fsys.go

    			return nil, &fs.PathError{Op: opName, Path: cpath, Err: nonFileInOverlayError(node.actualFilePath)}
    		}
    		return fakeFile{name: filepath.Base(path), real: fi}, nil
    	}
    }
    
    // fakeFile provides an fs.FileInfo implementation for an overlaid file,
    // so that the file has the name of the overlaid file, but takes all
    // other characteristics of the replacement file.
    type fakeFile struct {
    	name string
    	real fs.FileInfo
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top