- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 108 for asSlice (0.19 sec)
-
src/compress/bzip2/huffman.go
// of nodes to use when the tree is being constructed. nodes []huffmanNode nextNode int } // A huffmanNode is a node in the tree. left and right contain indexes into the // nodes slice of the tree. If left or right is invalidNodeValue then the child // is a left node and its value is in leftValue/rightValue. // // The symbols are uint16s because bzip2 encodes not only MTF indexes in the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:44:37 UTC 2024 - 6.7K bytes - Viewed (0) -
istioctl/pkg/writer/pilot/status.go
clusterStatus string listenerStatus string routeStatus string endpointStatus string extensionconfigStatus string } const ignoredStatus = "IGNORED" // PrintAll takes a slice of Istiod syncz responses and outputs them using a tabwriter func (s *XdsStatusWriter) PrintAll(statuses map[string]*discovery.DiscoveryResponse) error { w, fullStatus, err := s.setupStatusPrint(statuses) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 04:16:55 UTC 2024 - 6.1K bytes - Viewed (0) -
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) -
src/cmd/internal/bio/buf_mmap.go
//go:build unix package bio import ( "runtime" "sync/atomic" "syscall" ) // mmapLimit is the maximum number of mmaped regions to create before // falling back to reading into a heap-allocated slice. This exists // because some operating systems place a limit on the number of // distinct mapped regions per process. As of this writing: // // Darwin unlimited // DragonFly 1000000 (vm.max_proc_mmap)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.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/strconv/doc.go
// s := strconv.FormatInt(-42, 16) // s := strconv.FormatUint(42, 16) // // [AppendBool], [AppendFloat], [AppendInt], and [AppendUint] are similar but // append the formatted value to a destination slice. // // # String Conversions // // [Quote] and [QuoteToASCII] convert strings to quoted Go string literals. // The latter guarantees that the result is an ASCII string, by escaping // any non-ASCII Unicode with \u: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_windows.go
if err != nil { return Data{}, fmt.Errorf("MapViewOfFile %s: %w", f.Name(), err) } // need to remember addr and h for unmapping return Data{f, unsafe.Slice((*byte)(unsafe.Pointer(addr)), size), h}, nil } func munmapFile(d Data) error { err := windows.UnmapViewOfFile(uintptr(unsafe.Pointer(&d.Data[0]))) x, ok := d.Windows.(windows.Handle) if ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:10:54 UTC 2024 - 1.5K bytes - Viewed (0) -
src/net/http/servemux121.go
httpmuxgo121.IncNonDefault() } } // serveMux121 holds the state of a ServeMux needed for Go 1.21 behavior. type serveMux121 struct { mu sync.RWMutex m map[string]muxEntry es []muxEntry // slice of entries sorted from longest to shortest. hosts bool // whether any patterns contain hostnames } type muxEntry struct { h Handler pattern string } // Formerly ServeMux.Handle.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:40:38 UTC 2024 - 5.8K 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/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)