Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 127 for newOff (0.12 sec)

  1. pkg/registry/core/configmap/strategy.go

    	dropDisabledFields(newConfigMap, oldConfigMap)
    }
    
    func (strategy) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList {
    	oldCfg, newCfg := oldObj.(*api.ConfigMap), newObj.(*api.ConfigMap)
    
    	return validation.ValidateConfigMapUpdate(newCfg, oldCfg)
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    func (strategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string { return nil }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/runtime/os_illumos.go

    		ncap := (cents + 99) / 100
    		if ncap < n {
    			return ncap
    		}
    	}
    
    	return n
    }
    
    //go:nosplit
    func getrctl(controlname, oldbuf, newbuf unsafe.Pointer, flags uint32) uintptr {
    	return sysvicall4(&libc_getrctl, uintptr(controlname), uintptr(oldbuf), uintptr(newbuf), uintptr(flags))
    }
    
    //go:nosplit
    func rctlblk_get_local_action(buf unsafe.Pointer) uintptr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 18:06:12 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  3. pkg/test/loadbalancersim/loadbalancer/edf.go

    	e.currentDeadline = entry.deadline
    
    	// Re-add it with the updated weight.
    	e.Add(calcWeight(entry.weight, entry.value), entry.value)
    	return entry.value
    }
    
    // NewEDF create a new edf scheduler
    func NewEDF() *EDF {
    	pq := make(priorityQueue, 0)
    	return &EDF{
    		pq:           &pq,
    		currentIndex: 0,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. pkg/config/analysis/incluster/controller.go

    	for _, k := range c.analyzer.Schemas().All() {
    		c.analyzer.RegisterEventHandler(k.GroupVersionKind(), func(oldcfg config.Config, newcfg config.Config, ev model.Event) {
    			gvk := oldcfg.GroupVersionKind
    			if (gvk == config.GroupVersionKind{}) {
    				gvk = newcfg.GroupVersionKind
    			}
    			chKind <- gvk
    		})
    	}
    	oldmsgs := map[string]diag.Messages{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. src/crypto/issue21104_test.go

    	}
    	test(t, "RC4", cipherText, cipher.XORKeyStream)
    }
    func TestCTROutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CTR", cipher.NewCTR)
    }
    func TestOFBOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "OFB", cipher.NewOFB)
    }
    func TestCFBEncryptOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CFB Encrypt", cipher.NewCFBEncrypter)
    }
    func TestCFBDecryptOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CFB Decrypt", cipher.NewCFBDecrypter)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 06:03:36 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  6. src/crypto/cipher/example_test.go

    		panic(err)
    	}
    
    	stream := cipher.NewOFB(block, iv)
    	stream.XORKeyStream(ciphertext[aes.BlockSize:], plaintext)
    
    	// It's important to remember that ciphertexts must be authenticated
    	// (i.e. by using crypto/hmac) as well as being encrypted in order to
    	// be secure.
    
    	// OFB mode is the same for both encryption and decryption, so we can
    	// also decrypt that ciphertext with NewOFB.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
  7. src/net/file_wasip1_test.go

    		}
    	}
    }
    
    func TestWasip1NewFileListener(t *testing.T) {
    	if l, ok := newFileListener(newFD("tcp", -1)).(*TCPListener); !ok {
    		t.Errorf("newFileListener: tcp listener type mismatch: %T", l)
    	} else {
    		testIsTCPAddr(t, "Addr", l.Addr())
    	}
    }
    
    func TestWasip1NewFileConn(t *testing.T) {
    	if c, ok := newFileConn(newFD("tcp", -1)).(*TCPConn); !ok {
    		t.Errorf("newFileConn: tcp conn type mismatch: %T", c)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:06:56 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/FileUtil.java

                    size += len;
                    if (size == bufferSize) {
                        final char[] newBuf = new char[bufferSize + initialCapacity];
                        System.arraycopy(buf, 0, newBuf, 0, bufferSize);
                        buf = newBuf;
                        bufferSize += initialCapacity;
                    }
                }
                return new String(buf, 0, size);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. cni/pkg/install/kubeconfig_test.go

    	newk8sServiceHost := "50.76.2.1"
    	newCfg := &config.InstallConfig{
    		MountedCNINetDir:      tempDir,
    		KubeCAFile:            kubeCAFilepath,
    		K8sServiceHost:        newk8sServiceHost,
    		K8sServicePort:        k8sServicePort,
    		K8sServiceAccountPath: tmp,
    	}
    	// Write out a kubeconfig with one cert
    	result, err = createKubeConfig(newCfg)
    	if err != nil {
    		t.Fatalf("did not expect failure: %v", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/net/fd_fake.go

    	// fd_close, and sock_shutdown on the resulting connection. We
    	// intercept applicable netFD calls on this instance, and then pass
    	// the remainder of the netFD calls to fakeNetFD.
    	*fakeNetFD
    }
    
    func newFD(net string, sysfd int) *netFD {
    	return newPollFD(net, poll.FD{
    		Sysfd:         sysfd,
    		IsStream:      true,
    		ZeroReadIsEOF: true,
    	})
    }
    
    func newPollFD(net string, pfd poll.FD) *netFD {
    	var laddr Addr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top