Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for original (0.12 sec)

  1. src/runtime/checkptr.go

    	}
    
    	for _, original := range originals {
    		if base == checkptrBase(original) {
    			return
    		}
    	}
    
    	throw("checkptr: pointer arithmetic result points to invalid allocation")
    }
    
    // checkptrBase returns the base address for the allocation containing
    // the address p.
    //
    // Importantly, if p1 and p2 point into the same variable, then
    // checkptrBase(p1) == checkptrBase(p2). However, the converse/inverse
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/sort/slice.go

    	"math/bits"
    )
    
    // Slice sorts the slice x given the provided less function.
    // It panics if x is not a slice.
    //
    // The sort is not guaranteed to be stable: equal elements
    // may be reversed from their original order.
    // For a stable sort, use [SliceStable].
    //
    // The less function must satisfy the same requirements as
    // the Interface type's Less method.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/object_test.go

    // the same Func Object as the original method. See also go.dev/issue/34421.
    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/net/rpc/jsonrpc/server.go

    	// Package rpc expects uint64 request IDs.
    	// We assign uint64 sequence numbers to incoming requests
    	// but save the original request ID in the pending map.
    	// When rpc responds, we use the sequence number in
    	// the response to find the original request ID.
    	mutex   sync.Mutex // protects seq, pending
    	seq     uint64
    	pending map[uint64]*json.RawMessage
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/web/http.go

    // securityPreservingHTTPClient returns a client that is like the original
    // but rejects redirects to plain-HTTP URLs if the original URL was secure.
    func securityPreservingHTTPClient(original *http.Client) *http.Client {
    	c := new(http.Client)
    	*c = *original
    	c.CheckRedirect = func(req *http.Request, via []*http.Request) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. src/slices/iter.go

    	s := Collect(seq)
    	SortFunc(s, cmp)
    	return s
    }
    
    // SortedStableFunc collects values from seq into a new slice.
    // It then sorts the slice while keeping the original order of equal elements,
    // using the comparison function to compare elements.
    // It returns the new slice.
    func SortedStableFunc[E any](seq iter.Seq[E], cmp func(E, E) int) []E {
    	s := Collect(seq)
    	SortStableFunc(s, cmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/go/types/object_test.go

    // the same Func Object as the original method. See also go.dev/issue/34421.
    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/cmd/dist/README

    in practice any release ≥ Go 1.20.6 but < Go 1.x will work as the bootstrap base.
    Releases ≥ Go 1.x are very likely to work as well.
    
    See https://go.dev/s/go15bootstrap for more details about the original bootstrap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 17:20:22 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. src/net/main_windows_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package net
    
    import "internal/poll"
    
    var (
    	// Placeholders for saving original socket system calls.
    	origWSASocket   = wsaSocketFunc
    	origClosesocket = poll.CloseFunc
    	origConnect     = connectFunc
    	origConnectEx   = poll.ConnectExFunc
    	origListen      = listenFunc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:36:30 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/lex.go

    // The underlying scanner elides all spaces except newline, so the input looks like a stream of
    // Tokens; original spacing is lost but we don't need it.
    type TokenReader interface {
    	// Next returns the next token.
    	Next() ScanToken
    	// The following methods all refer to the most recent token returned by Next.
    	// Text returns the original string representation of the token.
    	Text() string
    	// File reports the source file name of the token.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top