Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 652 for fSlice (0.13 sec)

  1. src/runtime/callers_test.go

    	for k := range m {
    		seen = append(seen, k)
    	}
    	t.Logf("functions seen: %s", strings.Join(seen, " "))
    
    	var f3Line int
    	if pan {
    		f3Line = 24
    	} else {
    		f3Line = 27
    	}
    	want := []struct {
    		name string
    		line int
    	}{
    		{"f1", 15},
    		{"f2", 19},
    		{"f3", f3Line},
    	}
    	for _, w := range want {
    		if got := m["runtime_test."+w.name]; got != w.line {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    }
    
    func TestSlicePrinter(t *testing.T) {
    	slice := []int{}
    	s := Sprint(slice)
    	if s != "[]" {
    		t.Errorf("empty slice printed as %q not %q", s, "[]")
    	}
    	slice = []int{1, 2, 3}
    	s = Sprint(slice)
    	if s != "[1 2 3]" {
    		t.Errorf("slice: got %q expected %q", s, "[1 2 3]")
    	}
    	s = Sprint(&slice)
    	if s != "&[1 2 3]" {
    		t.Errorf("&slice: got %q expected %q", s, "&[1 2 3]")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. pkg/registry/certificates/certificates/strategy_test.go

    				&user.DefaultInfo{
    					Name: "alice",
    					UID:  "234",
    				},
    			),
    			obj: &certapi.CertificateSigningRequest{
    				Spec: certapi.CertificateSigningRequestSpec{
    					Username: "bob",
    					UID:      "123",
    					Groups:   []string{"group1"},
    				},
    			},
    			expectedObj: &certapi.CertificateSigningRequest{
    				Spec: certapi.CertificateSigningRequestSpec{
    					Username: "alice",
    					UID:      "234",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

                    "expected tf_executor.island";
    
        // Move inner ops in island to before the outer graph.
        auto& island_body = island_op.GetBody().getOperations();
        parent_block->getOperations().splice(graph_position, island_body,
                                             island_body.begin(),
                                             std::prev(island_body.end()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/net/rawconn.go

    //
    // Other packages in std that also import [internal/poll] (such as os)
    // can use a type assertion to access this extension method so that
    // they can pass the *poll.FD to functions like poll.Splice.
    //
    // PollFD is not intended for use outside the standard library.
    func (c *rawConn) PollFD() *poll.FD {
    	if !c.ok() {
    		return nil
    	}
    	return &c.fd.pfd
    }
    
    func newRawConn(fd *netFD) *rawConn {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. src/internal/poll/splice_linux.go

    // splice wraps the splice system call. Since the current implementation
    // only uses splice on sockets and pipes, the offset arguments are unused.
    // splice returns int instead of int64, because callers never ask it to
    // move more data in a single call than can fit in an int32.
    func splice(out int, in int, max int, flags int) (int, error) {
    	n, err := syscall.Splice(in, nil, out, nil, max, flags)
    	return int(n), err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/universe.go

    	_Add:        {"Add", 2, false, expression},
    	_Alignof:    {"Alignof", 1, false, expression},
    	_Offsetof:   {"Offsetof", 1, false, expression},
    	_Sizeof:     {"Sizeof", 1, false, expression},
    	_Slice:      {"Slice", 2, false, expression},
    	_SliceData:  {"SliceData", 1, false, expression},
    	_String:     {"String", 2, false, expression},
    	_StringData: {"StringData", 1, false, expression},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/go/types/universe.go

    	_Add:        {"Add", 2, false, expression},
    	_Alignof:    {"Alignof", 1, false, expression},
    	_Offsetof:   {"Offsetof", 1, false, expression},
    	_Sizeof:     {"Sizeof", 1, false, expression},
    	_Slice:      {"Slice", 2, false, expression},
    	_SliceData:  {"SliceData", 1, false, expression},
    	_String:     {"String", 2, false, expression},
    	_StringData: {"StringData", 1, false, expression},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/builtins.go

    		}
    
    	case _SliceData:
    		// unsafe.SliceData(slice []T) *T
    		check.verifyVersionf(call.Fun, go1_20, "unsafe.SliceData")
    
    		slice, _ := coreType(x.typ).(*Slice)
    		if slice == nil {
    			check.errorf(x, InvalidUnsafeSliceData, invalidArg+"%s is not a slice", x)
    			return
    		}
    
    		x.mode = value
    		x.typ = NewPointer(slice.elem)
    		if check.recordTypes() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  10. src/net/splice_linux_test.go

    	clientDown, serverDown := spawnTestSocketPair(t, "tcp")
    	defer clientDown.Close()
    	defer serverDown.Close()
    	// If splice called poll.Splice here, we'd get err == syscall.EINVAL
    	// and handled == false.  If poll.Splice gets an EINVAL on the first
    	// try, it assumes the kernel it's running on doesn't support splice
    	// for unix sockets and returns handled == false. This works for our
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top