- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 213 for SLICE (0.86 sec)
-
cmd/metacache-entries.go
// Order is preserved, but the underlying slice is modified. func (m *metaCacheEntriesSorted) filterObjectsOnly() { dst := m.o[:0] for _, o := range m.o { if !o.isDir() { dst = append(dst, o) } } m.o = dst } // filterPrefixesOnly will remove objects. // Order is preserved, but the underlying slice is modified. func (m *metaCacheEntriesSorted) filterPrefixesOnly() {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 04:34:26 UTC 2024 - 24K bytes - Viewed (0) -
src/net/textproto/reader.go
if line != nil { line = bytes.Clone(line) } return line, err } // readContinuedLineSlice reads continued lines from the reader buffer, // returning a byte slice with all lines. The validateFirstLine function // is run on the first read line, and if it returns an error then this // error is returned from readContinuedLineSlice.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 22.1K bytes - Viewed (0) -
src/encoding/gob/encode.go
switch t := typ; t.Kind() { case reflect.Slice: if t.Elem().Kind() == reflect.Uint8 { op = encUint8Array break } // Slices have a header; we decode it to find the underlying array. elemOp, elemIndir := encOpFor(t.Elem(), inProgress, building) helper := encSliceHelper[t.Elem().Kind()] op = func(i *encInstr, state *encoderState, slice reflect.Value) { if !state.sendZero && slice.Len() == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 19K bytes - Viewed (0) -
src/net/netip/netip.go
// AddrFromSlice parses the 4- or 16-byte byte slice as an IPv4 or IPv6 address. // Note that a [net.IP] can be passed directly as the []byte argument. // If slice's length is not 4 or 16, AddrFromSlice returns [Addr]{}, false. func AddrFromSlice(slice []byte) (ip Addr, ok bool) { switch len(slice) { case 4: return AddrFrom4([4]byte(slice)), true case 16: return AddrFrom16([16]byte(slice)), true } return Addr{}, false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 43.2K bytes - Viewed (0) -
src/runtime/iface.go
// Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname convTslice func convTslice(val []byte) (x unsafe.Pointer) { // Note: this must work for any element type, not just byte. if (*slice)(unsafe.Pointer(&val)).array == nil { x = unsafe.Pointer(&zeroVal[0]) } else { x = mallocgc(unsafe.Sizeof(val), sliceType, true) *(*[]byte)(x) = val } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0) -
pilot/pkg/serviceregistry/aggregate/controller_test.go
if l := len(result); l != 3 { t.Fatalf("Expected length of the registries slice should be 3, got %d", l) } // Test Delete cluster2 ctrl.DeleteRegistry(registries[1].ClusterID, registries[1].ProviderID) result = ctrl.GetRegistries() if l := len(result); l != 2 { t.Fatalf("Expected length of the registries slice should be 2, got %d", l) } // check left registries are orders as before
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 14.5K bytes - Viewed (0) -
src/go/types/predicates.go
// assume they are the same to avoid spurious follow-on errors. return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p) } case *Slice: // Two slice types are identical if they have identical element types. if y, ok := y.(*Slice); ok { return c.identical(x.elem, y.elem, p) } case *Struct: // Two struct types are identical if they have the same sequence of fields,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
// the current unified IR element. type readerDict struct { // bounds is a slice of typeInfos corresponding to the underlying // bounds of the element's type parameters. bounds []typeInfo // tparams is a slice of the constructed TypeParams for the element. tparams []*types.TypeParam // derived is a slice of types derived from tparams, which may be // instantiated while reading the current element.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/pgen.go
fmt.Fprintf(os.Stderr, "=-= merge locals state for %v:\n%v", fn, mls) } } leaders = make(map[*ir.Name]int64) } // Use sort.SliceStable instead of sort.Slice so stack layout (and thus // compiler output) is less sensitive to frontend changes that // introduce or remove unused variables. sort.SliceStable(fn.Dcl, func(i, j int) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 13.1K bytes - Viewed (0) -
pkg/scheduler/framework/preemption/preemption_test.go
// Sort the values (inner victims) and the candidate itself (by its NominatedNodeName). for i := range got { victims := got[i].Victims().Pods sort.Slice(victims, func(i, j int) bool { return victims[i].Name < victims[j].Name }) } sort.Slice(got, func(i, j int) bool { return got[i].Name() < got[j].Name() })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 18.7K bytes - Viewed (0)