- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 402 for SLICE (0.14 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
return fmt.Errorf("Pass.ReadFile: %s is not among OtherFiles, IgnoredFiles, or names of Files", filename) } // TODO(adonovan): use go1.21 slices.Contains. func slicesContains[S ~[]E, E comparable](slice S, x E) bool { for _, elem := range slice { if elem == x { return true } } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/DiagnosticToProblemListenerTest.groovy
1 * spec.lineInFileLocation("SomeFile.java", 1, 1) 0 * spec.lineInFileLocation(_, _, _, _) 0 * spec.offsetInFileLocation(_, _, _, _) } def "when only start defined, no offset or slice location is reported"() { given: def diagnostic = Mock(Diagnostic) diagnostic.kind >> Diagnostic.Kind.ERROR diagnostic.source >> Mock(JavaFileObject) { name >> "SomeFile.java"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 13:58:13 UTC 2024 - 6.2K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
"cmp" "reflect" "slices" ) // Note: Throughout this package we avoid calling reflect.Value.Interface as // it is not always legal to do so and it's easier to avoid the issue than to face it. // SortedMap is a slice of KeyValue pairs that simplifies sorting // and iterating over map entries. // // Each KeyValue pair contains a map key and its corresponding value. type SortedMap []KeyValue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
callbacks/preload.go
return err } } else if rel := relationships.Relations[name]; rel != nil { if joined, nestedJoins := isJoined(name); joined { switch rv := db.Statement.ReflectValue; rv.Kind() { case reflect.Slice, reflect.Array: if rv.Len() > 0 { reflectValue := rel.FieldSchema.MakeSlice().Elem() for i := 0; i < rv.Len(); i++ { frv := rel.Field.ReflectValueOf(db.Statement.Context, rv.Index(i))
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:52:33 UTC 2024 - 11.6K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8.go
for i := range seed { for { x, ok := s.Next() if ok { seed[i] = x break } s.Refill() } } s.Init64(seed) } // Marshal marshals the state into a byte slice. // Marshal and Unmarshal are functions, not methods, // so that they will not be linked into the runtime // when it uses the State struct, since the runtime // does not need these. func Marshal(s *State) []byte {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:47:29 UTC 2024 - 4.4K bytes - Viewed (0) -
src/runtime/symtab.go
"unsafe" ) // Frames may be used to get function/file/line information for a // slice of PC values returned by [Callers]. type Frames struct { // callers is a slice of PCs that have not yet been expanded to frames. callers []uintptr // nextPC is a next PC to expand ahead of processing callers. nextPC uintptr // frames is a slice of Frames that have yet to be returned. frames []Frame frameStore [2]Frame }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 40K bytes - Viewed (0) -
src/net/ip.go
// This library accepts either size of byte slice but always // returns 16-byte addresses. package net import ( "internal/bytealg" "internal/itoa" "internal/stringslite" "net/netip" ) // IP address lengths (bytes). const ( IPv4len = 4 IPv6len = 16 ) // An IP is a single IP address, a slice of bytes. // Functions in this package accept either 4-byte (IPv4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/apis/resource/validation/validation.go
return allErrs } // validateSliceIsASet ensures that a slice contains no duplicates and does not exceed a certain maximum size. func validateSliceIsASet[T comparable](slice []T, maxSize int, validateItem func(item T, fldPath *field.Path) field.ErrorList, fldPath *field.Path) field.ErrorList { var allErrs field.ErrorList allItems := sets.New[T]() for i, item := range slice { idxPath := fldPath.Index(i) if allItems.Has(item) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 28.3K bytes - Viewed (0) -
internal/logger/targets.go
// This is always set represent /dev/console target consoleTgt Target ) // SystemTargets returns active targets. // Returned slice may not be modified in any way. func SystemTargets() []Target { return systemTargets.get() } // AuditTargets returns active audit targets. // Returned slice may not be modified in any way. func AuditTargets() []Target { return auditTargets.get() }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:44:50 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/signature.go
n := params.Len() if n == 0 { panic("variadic function must have at least one parameter") } core := coreString(params.At(n - 1).typ) if _, ok := core.(*Slice); !ok && !isString(core) { panic(fmt.Sprintf("got %s, want variadic parameter with unnamed slice type or string as core type", core.String())) } } sig := &Signature{recv: recv, params: params, results: results, variadic: variadic} if len(recvTypeParams) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:33:05 UTC 2024 - 12.6K bytes - Viewed (0)