Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 190 for asSlice (0.18 sec)

  1. src/encoding/gob/type.go

    	elem := m.Elem.gobType().safeString(seen)
    	return fmt.Sprintf("map[%s]%s", key, elem)
    }
    
    func (m *mapType) string() string { return m.safeString(make(map[typeId]bool)) }
    
    // Slice type
    type sliceType struct {
    	CommonType
    	Elem typeId
    }
    
    func newSliceType(name string) *sliceType {
    	s := &sliceType{CommonType{Name: name}, 0}
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	for _, wl := range zDump.Workloads {
    		if filter.Verify(wl) {
    			verifiedWorkloads = append(verifiedWorkloads, wl)
    		}
    	}
    
    	// Sort by name, node
    	sort.Slice(verifiedWorkloads, func(i, j int) bool {
    		in := verifiedWorkloads[i].Namespace + "." + verifiedWorkloads[i].Name
    		jn := verifiedWorkloads[j].Namespace + "." + verifiedWorkloads[j].Name
    		if in != jn {
    			return in < jn
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/log/slog/value.go

    // It panics if v's [Kind] is not [KindGroup].
    func (v Value) Group() []Attr {
    	if sp, ok := v.any.(groupptr); ok {
    		return unsafe.Slice((*Attr)(sp), v.num)
    	}
    	panic("Group: bad kind")
    }
    
    func (v Value) group() []Attr {
    	return unsafe.Slice((*Attr)(v.any.(groupptr)), v.num)
    }
    
    //////////////// Other
    
    // Equal reports whether v and w represent the same Go value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. pkg/api/testing/unstructured_test.go

    	knownFailureReasons := map[string][]schema.GroupVersionKind{
    		// Since JSON cannot directly represent arbitrary byte sequences, a byte slice
    		// encodes to a JSON string containing the base64 encoding of the slice
    		// contents. Decoding a JSON string into a byte slice assumes (and requires) that
    		// the JSON string contain base64-encoded data. The CBOR serializer must be
    		// compatible with this behavior.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/optimize.mlir

      %0 = "tfl.slice"(%arg0, %begin, %arg1) : (tensor<?xf32>, tensor<1xi32>, tensor<1xi32>) -> tensor<?xf32>
      func.return %0 : tensor<?xf32>
      // CHECK-DAG: %[[BEGIN:.*]] = arith.constant dense<0> : tensor<1xi32>
      // CHECK: %[[SLICE:.*]] = "tfl.slice"(%arg0, %[[BEGIN]], %arg1) : (tensor<?xf32>, tensor<1xi32>, tensor<1xi32>) -> tensor<?xf32>
      // CHECK: return %[[SLICE]] : tensor<?xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 284.1K bytes
    - Viewed (0)
  6. src/go/types/generate_test.go

    							return false
    						}
    					}
    				}
    			}
    		}
    		return true
    	})
    }
    
    // fixGlobalTypVarDecl changes the global Typ variable from an array to a slice
    // (in types2 we use an array for efficiency, in go/types it's a slice and we
    // cannot change that).
    func fixGlobalTypVarDecl(f *ast.File) {
    	ast.Inspect(f, func(n ast.Node) bool {
    		switch n := n.(type) {
    		case *ast.ValueSpec:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. pkg/volume/util/util_test.go

    		},
    	}
    
    	for name, scenario := range scenarios {
    		mountOptions := MountOptionFromSpec(scenario.volume, scenario.systemOptions...)
    		if !reflect.DeepEqual(slice.SortStrings(mountOptions), slice.SortStrings(scenario.expectedMountList)) {
    			t.Errorf("for %s expected mount options : %v got %v", name, scenario.expectedMountList, mountOptions)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. src/os/dir_unix.go

    	}
    
    	// Change the meaning of n for the implementation below.
    	//
    	// The n above was for the public interface of "if n <= 0,
    	// Readdir returns all the FileInfo from the directory in a
    	// single slice".
    	//
    	// But below, we use only negative to mean looping until the
    	// end and positive to mean bounded, with positive
    	// terminating at 0.
    	if n == 0 {
    		n = -1
    	}
    
    	for n != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. operator/pkg/apis/istio/v1alpha1/validation/validation.go

    	if e.Kind() != reflect.Struct {
    		return validationErrors
    	}
    	for i := 0; i < e.NumField(); i++ {
    		// Corner case of a slice of something, if something is defined type, then process it recursively.
    		if e.Field(i).Kind() == reflect.Slice {
    			validationErrors = append(validationErrors, processSlice(e.Field(i), failOnMissingValidation, values, iopls)...)
    			continue
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 20:02:28 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. pkg/test/framework/components/environment/kube/kube.go

    	return out
    }
    
    func (e *Environment) Clusters() cluster.Clusters {
    	return e.AllClusters().MeshClusters()
    }
    
    // ClustersByNetwork returns an inverse mapping of the network topolgoy to a slice of clusters in a given network.
    func (e *Environment) ClustersByNetwork() map[string][]cluster.Cluster {
    	out := make(map[string][]cluster.Cluster)
    	for _, c := range e.Clusters() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top