Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for zeroing (1.67 sec)

  1. pkg/slices/slices.go

    func FilterInPlace[E any](s []E, f func(E) bool) []E {
    	n := 0
    	for _, val := range s {
    		if f(val) {
    			s[n] = val
    			n++
    		}
    	}
    
    	// If those elements contain pointers you might consider zeroing those elements
    	// so that objects they reference can be garbage collected."
    	var empty E
    	for i := n; i < len(s); i++ {
    		s[i] = empty
    	}
    
    	s = s[:n]
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/sha3/sha3.go

    func (d *state) BlockSize() int { return d.rate }
    
    // Size returns the output size of the hash function in bytes.
    func (d *state) Size() int { return d.outputLen }
    
    // Reset clears the internal state by zeroing the sponge state and
    // the buffer indexes, and setting Sponge.state to absorbing.
    func (d *state) Reset() {
    	// Zero the permutation's state.
    	for i := range d.a {
    		d.a[i] = 0
    	}
    	d.state = spongeAbsorbing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/KotlinCompositeProviderFactory.kt

        factory: KotlinCompositeProviderFactory<P>,
        crossinline mergeTargets: (List<T>) -> P,
    ): P {
        // We should flatten providers before merging so that the merger has access to all individual providers, and also after merging because
        // composite providers may be created by the merger.
        return factory.createFlattened(factory.flatten(this).mergeOnly<_, T> { mergeTargets(it) })
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. pilot/pkg/model/destination_rule.go

    	"istio.io/istio/pkg/util/sets"
    )
    
    // This function merges one or more destination rules for a given host string
    // into a single destination rule. Note that it does not perform inheritance style merging.
    // IOW, given three dest rules (*.foo.com, *.foo.com, *.com) without selectors, calling this function for
    // each config will result in a final dest rule set (*.foo.com, and *.com).
    //
    // The following is the merge logic:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 07:22:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/internal/trace/internal/oldtrace/order.go

    	unordered = ^uint64(0)
    	garbage   = ^uint64(0) - 1
    	noseq     = ^uint64(0)
    	seqinc    = ^uint64(0) - 1
    )
    
    // stateTransition returns goroutine state (sequence and status) when the event
    // becomes ready for merging (init) and the goroutine state after the event (next).
    func stateTransition(ev *Event) (g uint64, init, next gState) {
    	// Note that we have an explicit return in each case, as that produces slightly better code (tested on Go 1.19).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/discovery/v1/types.go

    	// serving is identical to ready except that it is set regardless of the
    	// terminating state of endpoints. This condition should be set to true for
    	// a ready endpoint that is terminating. If nil, consumers should defer to
    	// the ready condition.
    	// +optional
    	Serving *bool `json:"serving,omitempty" protobuf:"bytes,2,name=serving"`
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/packages/KotlinPackageProviderFactory.kt

    public abstract class KotlinPackageProviderFactory : KotlinPlatformComponent {
        public abstract fun createPackageProvider(searchScope: GlobalSearchScope): KotlinPackageProvider
    }
    
    /**
     * [KotlinPackageProviderMerger] allows merging multiple [KotlinPackageProvider]s into a more efficient package provider.
     *
     * Package providers should not be naively merged by combining scopes and calling [createPackageProvider], because there may be additional
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:57:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. pkg/controlplane/apiserver/apis.go

    			// This can happen when an entire API group, version, or development-stage (alpha, beta, GA) is disabled.
    			klog.Infof("API group %q is not enabled, skipping.", groupName)
    			continue
    		}
    
    		// Remove resources that serving kinds that are removed.
    		// We do this here so that we don't accidentally serve versions without resources or openapi information that for kinds we don't serve.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.td

        sends the given argument tensors back to the serving controller. This
        triggers a controller-side stream callback (see `ScopedStreamCallback`).
    
        In addition to the listed attributes, this op has two "hidden" attributes
        that do not exist in SavedModel but are dynamically populated by the serving
        runtime:
    
        * `_controller_address`: Address of the remote instance to which tensors
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/declarations/KotlinDeclarationProviderFactory.kt

     *
     * Hence, [KotlinDeclarationProvider]s cannot just be combined by combining the scopes of all declaration providers and calling
     * [createDeclarationProvider]. [KotlinDeclarationProviderMerger] should implement proper merging logic that takes these concerns into
     * account.
     */
    public abstract class KotlinDeclarationProviderMerger : KotlinComposableProviderMerger<KotlinDeclarationProvider>, KotlinPlatformComponent {
        public companion object {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:57:40 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top