- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for Deref (0.04 sec)
-
src/internal/types/testdata/examples/typesets.go
if x < y { return x } return y } func lookup[M ~map[K]V, K comparable, V any](m M, k K) V { return m[k] } func deref[P ~*E, E any](p P) E { return *p } func _() int { p := new(int) return deref(p) } func addrOfCopy[V any, P *V](v V) P { return &v } func _() *int { return addrOfCopy(0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 1.4K bytes - Viewed (0) -
test/recover3.go
check("int64-div-zero", func() { println(1 / x64) }, "integer divide by zero") check("nil-deref", func() { println(p[0]) }, "nil pointer dereference") check("nil-deref-1", func() { println(p[1]) }, "nil pointer dereference") check("nil-deref-big", func() { println(q[5000]) }, "nil pointer dereference") i = 99999 var sl []int p1 := new([10]int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.6K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java
return userProperties.get(key); } @Override public Model getRawModel(Path from, Path p) { return Holder.deref(modelByPath.get(p)); } @Override public Model getRawModel(Path from, String groupId, String artifactId) { return Holder.deref(modelByGA.get(new GAKey(groupId, artifactId))); } @Override public Path locate(Path path) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 4K bytes - Viewed (0) -
maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java
return userProperties.get(key); } @Override public Model getRawModel(Path from, Path p) { return Holder.deref(modelByPath.get(p)); } @Override public Model getRawModel(Path from, String groupId, String artifactId) { return Holder.deref(modelByGA.get(new GAKey(groupId, artifactId))); } @Override public Path locate(Path path) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Nov 07 08:20:52 UTC 2023 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/delete_test.go
t.Errorf("metadata.DeletionGracePeriodSeconds = %v, want %v", ptr.Deref(tt.args.pod.DeletionGracePeriodSeconds, 0), ptr.Deref(tt.wantDeletionGracePeriodSeconds, 0)) } if !utilpointer.Int64Equal(tt.args.options.GracePeriodSeconds, tt.wantGracePeriodSeconds) { t.Errorf("options.GracePeriodSeconds = %v, want %v", ptr.Deref(tt.args.options.GracePeriodSeconds, 0), ptr.Deref(tt.wantGracePeriodSeconds, 0)) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 11:44:07 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/api/job/warnings.go
var warnings []string if spec.CompletionMode != nil && *spec.CompletionMode == batch.IndexedCompletion { completions := ptr.Deref(spec.Completions, 0) parallelism := ptr.Deref(spec.Parallelism, 0) if completions > completionsSoftLimit && parallelism > parallelismSoftLimitForUnlimitedCompletions {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 24 11:44:07 UTC 2024 - 1.9K bytes - Viewed (0) -
test/fixedbugs/issue4326.dir/q1.go
package q1 func Deref(typ interface{}) interface{} { if typ, ok := typ.(*int); ok { return *typ } return typ
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 07 14:59:19 UTC 2012 - 142 bytes - Viewed (0) -
test/fixedbugs/issue13265.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 13265: nil pointer deref. package p func f() { var c chan chan chan int for ; ; <-<-<-c { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 438 bytes - Viewed (0) -
test/fixedbugs/issue4326.dir/q2.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 07 14:59:19 UTC 2012 - 136 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
case *types.Interface: return InterfaceTermSet(typ) default: return []*types.Term{types.NewTerm(false, typ)}, nil } } // Deref returns the type of the variable pointed to by t, // if t's core type is a pointer; otherwise it returns t. // // Do not assume that Deref(T)==T implies T is not a pointer: // consider "type T *T", for example. // // TODO(adonovan): ideally this would live in typesinternal, but that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0)