Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 392 for asSlice (0.13 sec)

  1. src/slices/sort_benchmark_test.go

    					return n
    				}
    				return cmp.Compare(a.n, b.n)
    			}
    			// Presort the slice so all benchmark iterations are identical.
    			slices.SortFunc(structs, cmpFunc)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				// Sort the slice twice because slices.SortFunc modifies the slice in place.
    				slices.SortFunc(structs, func(a, b *myStruct) int { return cmpFunc(b, a) })
    				slices.SortFunc(structs, cmpFunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/arguments.go

    // only the instances of this argument in the overrides to be applied.
    func ArgumentsToCommand(base []kubeadmapi.Arg, overrides []kubeadmapi.Arg) []string {
    	var command []string
    	// Copy the overrides arguments into a new slice.
    	args := make([]kubeadmapi.Arg, len(overrides))
    	copy(args, overrides)
    
    	// overrideArgs is a set of args which will replace the args defined in the base
    	overrideArgs := sets.New[string]()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 11:01:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. src/reflect/deepequal.go

    // or if they point to deeply equal values.
    //
    // Slice values are deeply equal when all of the following are true:
    // they are both nil or both non-nil, they have the same length,
    // and either they point to the same initial entry of the same underlying array
    // (that is, &x[0] == &y[0]) or their corresponding elements (up to length) are deeply equal.
    // Note that a non-nil empty slice and a nil slice (for example, []byte{} and []byte(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. src/syscall/syscall_linux_amd64.go

    //sys	Setfsgid(gid int) (err error)
    //sys	Setfsuid(uid int) (err error)
    //sysnb	setrlimit(resource int, rlim *Rlimit) (err error) = SYS_SETRLIMIT
    //sys	Shutdown(fd int, how int) (err error)
    //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    //sys	Statfs(path string, buf *Statfs_t) (err error)
    //sys	SyncFileRange(fd int, off int64, n int64, flags int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. pkg/proxy/kubemark/hollow_proxy.go

    func (*FakeProxier) OnServiceSynced()                                                 {}
    func (*FakeProxier) OnEndpointSliceAdd(slice *discoveryv1.EndpointSlice)              {}
    func (*FakeProxier) OnEndpointSliceUpdate(oldSlice, slice *discoveryv1.EndpointSlice) {}
    func (*FakeProxier) OnEndpointSliceDelete(slice *discoveryv1.EndpointSlice)           {}
    func (*FakeProxier) OnEndpointSlicesSynced()                                          {}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. test/typeparam/builtins.go

    	_ = make(M1, 10)
    
    	_ = make(chan int)
    	_ = make(m1C0)
    	_ = make(C1)
    	_ = make(C1, 10)
    }
    
    // len/cap
    
    type Slice[T any] interface {
    	[]T
    }
    
    func c1[T any, S Slice[T]]() {
    	x := make(S, 5, 10)
    	_ = len(x)
    	_ = cap(x)
    }
    
    // append
    
    func a1[T any, S Slice[T]]() {
    	x := make(S, 5)
    	y := make(S, 2)
    	var z T
    	_ = append(x, y...)
    	_ = append(x, z)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/node/graph_populator.go

    	slice, ok := obj.(*resourcev1alpha2.ResourceSlice)
    	if !ok {
    		klog.Infof("unexpected type %T", obj)
    		return
    	}
    	g.graph.AddResourceSlice(slice.Name, slice.NodeName)
    }
    
    func (g *graphPopulator) deleteResourceSlice(obj interface{}) {
    	if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok {
    		obj = tombstone.Obj
    	}
    	slice, ok := obj.(*resourcev1alpha2.ResourceSlice)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go

    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
    //sys	setfsgid(gid int) (prev int, err error)
    //sys	setfsuid(uid int) (prev int, err error)
    //sys	Shutdown(fd int, how int) (err error)
    //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    
    func Stat(path string, stat *Stat_t) (err error) {
    	return Fstatat(AT_FDCWD, path, stat, 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. src/crypto/aes/aes_gcm.go

    }
    
    func (g *gcmAsm) Overhead() int {
    	return g.tagSize
    }
    
    // sliceForAppend takes a slice and a requested number of bytes. It returns a
    // slice with the contents of the given slice followed by that many bytes and a
    // second slice that aliases into it and contains only the extra bytes. If the
    // original slice has sufficient capacity then no allocation is performed.
    func sliceForAppend(in []byte, n int) (head, tail []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. tests/test_dependency_security_overrides.py

    app = FastAPI()
    
    
    def get_user(required_scopes: SecurityScopes):
        return "john", required_scopes.scopes
    
    
    def get_user_override(required_scopes: SecurityScopes):
        return "alice", required_scopes.scopes
    
    
    def get_data():
        return [1, 2, 3]
    
    
    def get_data_override():
        return [3, 4, 5]
    
    
    @app.get("/user")
    def read_user(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 14 15:54:46 UTC 2020
    - 1.4K bytes
    - Viewed (0)
Back to top