- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 68 for SLICE (0.04 sec)
-
src/cmd/trace/viewer.go
// license that can be found in the LICENSE file. package main import ( "fmt" "internal/trace" "internal/trace/traceviewer" "time" ) // viewerFrames returns the frames of the stack of ev. The given frame slice is // used to store the frames to reduce allocations. func viewerFrames(stk trace.Stack) []*trace.Frame { var frames []*trace.Frame stk.Frames(func(f trace.StackFrame) bool { frames = append(frames, &trace.Frame{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/mime/type.go
// extensions maps from MIME type to list of lowercase file // extensions: "image/jpeg" => [".jpg", ".jpeg"] extensionsMu sync.Mutex // Guards stores (but not loads) on extensions. extensions sync.Map // map[string][]string; slice values are append-only. ) // setMimeTypes is used by initMime's non-test path, and by tests. func setMimeTypes(lowerExt, mixExt map[string]string) { mimeTypes.Clear() mimeTypesLower.Clear() extensions.Clear()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5K 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) -
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) -
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) -
operator/pkg/name/name.go
Content string } // ManifestMap is a map of ComponentName to its manifest string. type ManifestMap map[ComponentName][]string // Consolidated returns a representation of mm where all manifests in the slice under a key are combined into a single // manifest. func (mm ManifestMap) Consolidated() map[string]string { out := make(map[string]string) for cname, ms := range mm { allM := "" for _, m := range ms {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 7.9K bytes - Viewed (0) -
src/syscall/getdirentries_test.go
if n == 0 { break } data := buf[:n] for len(data) > 0 { // If multiple Dirents are written into buf, sometimes when we reach the final one, // we have cap(buf) < Sizeof(Dirent). So use an appropriate slice to copy from data. var dirent syscall.Dirent copy((*[unsafe.Sizeof(dirent)]byte)(unsafe.Pointer(&dirent))[:], data) data = data[dirent.Reclen:] name := make([]byte, dirent.Namlen)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
ch = curr } else if curr.Dir() != types.SendRecv && ch.Dir() != curr.Dir() { // ch and curr are not bidirectional and not the same direction. return nil } } return ch } // NormalTerms returns a slice of terms representing the normalized structural // type restrictions of a type, if any. // // For all types other than *types.TypeParam, *types.Interface, and // *types.Union, this is just a single term with Tilde() == false and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
src/syscall/dirent.go
} } // ParseDirent parses up to max directory entries in buf, // appending the names to names. It returns the number of // bytes consumed from buf, the number of entries added // to names, and the new names slice. func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { origlen := len(buf) count = 0 for max != 0 && len(buf) > 0 { reclen, ok := direntReclen(buf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:13:24 UTC 2024 - 2.4K bytes - Viewed (0)