Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 190 for asSlice (0.09 sec)

  1. src/go/types/typestring.go

    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    		w.string(strconv.FormatInt(t.len, 10))
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Slice:
    		w.string("[]")
    		w.typ(t.elem)
    
    	case *Struct:
    		w.string("struct{")
    		for i, f := range t.fields {
    			if i > 0 {
    				w.byte(';')
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. cmd/global-heal.go

    				ss.HealStatus = "Healing"
    				ss.HealPriority = "high"
    				status.HealDisks = append(status.HealDisks, disk.Endpoint)
    			}
    		}
    		sortDisks(ss.Disks)
    		status.Sets = append(status.Sets, ss)
    	}
    	sort.Slice(status.Sets, func(i, j int) bool {
    		return status.Sets[i].ID < status.Sets[j].ID
    	})
    
    	backendInfo := o.BackendInfo()
    	status.SCParity = make(map[string]int)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:48:50 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. src/internal/coverage/cfile/apis.go

    	// another thread". Thus we can be sure that there will be no
    	// inconsistency when reading the counter array from the thread
    	// running ClearCounters.
    
    	for _, c := range cl {
    		sd := unsafe.Slice((*atomic.Uint32)(unsafe.Pointer(c.Counters)), int(c.Len))
    		for i := 0; i < len(sd); i++ {
    			// Skip ahead until the next non-zero value.
    			sdi := sd[i].Load()
    			if sdi == 0 {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/math/rand/v2/rand_test.go

    		r.Shuffle(n, func(i, j int) { t.Fatalf("swap called, n=%d i=%d j=%d", n, i, j) })
    	}
    }
    
    // encodePerm converts from a permuted slice of length n, such as Perm generates, to an int in [0, n!).
    // See https://en.wikipedia.org/wiki/Lehmer_code.
    // encodePerm modifies the input slice.
    func encodePerm(s []int) int {
    	// Convert to Lehmer code.
    	for i, x := range s {
    		r := s[i+1:]
    		for j, y := range r {
    			if y > x {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/runtime/gc_test.go

    		t.Fatalf("no periodic GC: got %v GCs, want >= 2", numGCs)
    	}
    }
    
    func TestGcZombieReporting(t *testing.T) {
    	// This test is somewhat sensitive to how the allocator works.
    	// Pointers in zombies slice may cross-span, thus we
    	// add invalidptr=0 for avoiding the badPointer check.
    	// See issue https://golang.org/issues/49613/
    	got := runTestProg(t, "testprog", "GCZombie", "GODEBUG=invalidptr=0")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. pkg/kubelet/container/helpers.go

    }
    
    // envVarsToMap constructs a map of environment name to value from a slice
    // of env vars.
    func envVarsToMap(envs []EnvVar) map[string]string {
    	result := map[string]string{}
    	for _, env := range envs {
    		result[env.Name] = env.Value
    	}
    	return result
    }
    
    // v1EnvVarsToMap constructs a map of environment name to value from a slice
    // of env vars.
    func v1EnvVarsToMap(envs []v1.EnvVar) map[string]string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. src/syscall/exec_linux_test.go

    	if err != nil {
    		if os.IsNotExist(err) || os.IsPermission(err) {
    			t.Skip(err)
    		}
    		t.Fatal(err)
    	}
    
    	// Expect a single line like this:
    	// 0::/user.slice/user-1000.slice/******@****.***e/app.slice/vte-spawn-891992a2-efbb-4f28-aedb-b24f9e706770.scope
    	// Otherwise it's either cgroup v1 or a hybrid hierarchy.
    	if bytes.Count(selfCg, []byte("\n")) > 1 {
    		t.Skip("cgroup v2 not available")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    passing a pointer to a field in a struct, the Go memory in question is
    the memory occupied by the field, not the entire struct. When passing a
    pointer to an element in an array or slice, the Go memory in question is
    the entire array or the entire backing array of the slice.
    
    C code may keep a copy of a Go pointer only as long as the memory it
    points to is pinned.
    
    C code may not keep a copy of a Go pointer after the call returns,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-utils_test.go

    				return false
    			}
    		}
    		return true
    	}
    	if !chkNumVersions(fivs.Versions) {
    		t.Fatalf("Expected all versions to have the same NumVersions")
    	}
    
    	sort.Slice(versions, func(i, j int) bool {
    		if versions[i].IsLatest {
    			return true
    		}
    		if versions[j].IsLatest {
    			return false
    		}
    		return versions[i].ModTime.After(versions[j].ModTime)
    	})
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/flowcontrol/v1/types.go

    	// There must be at least one member in this slice.
    	// A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request.
    	// +listType=atomic
    	// Required.
    	Subjects []Subject `json:"subjects" protobuf:"bytes,1,rep,name=subjects"`
    	// `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top