Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 238 for newsize (0.25 sec)

  1. src/strings/replace.go

    const countCutOff = 8
    
    func (r *byteStringReplacer) Replace(s string) string {
    	newSize := len(s)
    	anyChanges := false
    	// Is it faster to use Count?
    	if len(r.toReplace)*countCutOff <= len(s) {
    		for _, x := range r.toReplace {
    			if c := Count(s, x); c != 0 {
    				// The -1 is because we are replacing 1 byte with len(replacements[b]) bytes.
    				newSize += c * (len(r.replacements[x[0]]) - 1)
    				anyChanges = true
    			}
    
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactHashMap.java

        int newSize = newEntryIndex + 1;
        int hash = smearedHash(key);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactHashMap.java

        int newSize = newEntryIndex + 1;
        int hash = smearedHash(key);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/internal/language/parse.go

    	}
    }
    
    // resizeRange shrinks or grows the array at position oldStart such that
    // a new string of size newSize can fit between oldStart and oldEnd.
    // Sets the scan point to after the resized range.
    func (s *scanner) resizeRange(oldStart, oldEnd, newSize int) {
    	s.start = oldStart
    	if end := oldStart + newSize; end != oldEnd {
    		diff := end - oldEnd
    		var b []byte
    		if n := len(s.b) + diff; n > cap(s.b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. src/runtime/iface.go

    	newN = 1 << sys.Len64(uint64(newN-1)) // round up to a power of 2
    
    	// Allocate the new table.
    	newSize := unsafe.Sizeof(abi.TypeAssertCache{}) + uintptr(newN-1)*unsafe.Sizeof(abi.TypeAssertCacheEntry{})
    	newC := (*abi.TypeAssertCache)(mallocgc(newSize, nil, true))
    	newC.Mask = uintptr(newN - 1)
    	newEntries := unsafe.Slice(&newC.Entries[0], newN)
    
    	// Fill the new table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  6. pkg/volume/portworx/portworx_util.go

    	}
    
    	vol := vols[0]
    	tBytes, err := volumehelpers.RoundUpToB(newSize)
    	if err != nil {
    		return err
    	}
    	newSizeInBytes := uint64(tBytes)
    	if vol.Spec.Size >= newSizeInBytes {
    		klog.Infof("Portworx volume: %s already at size: %d greater than or equal to new "+
    			"requested size: %d. Skipping resize.", spec.Name(), vol.Spec.Size, newSizeInBytes)
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/HashBiMap.java

        return array;
      }
    
      /** Equivalent to {@code Arrays.copyOf(array, newSize)}, save that the new elements are ABSENT. */
      private static int[] expandAndFillWithAbsent(int[] array, int newSize) {
        int oldSize = array.length;
        int[] result = Arrays.copyOf(array, newSize);
        Arrays.fill(result, oldSize, newSize, ABSENT);
        return result;
      }
    
      @Override
      public int size() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  8. pkg/volume/util/operationexecutor/operation_generator_test.go

    			}
    			actualSize := test.actualSize
    			if actualSize == nil {
    				actualSize = pvc.Status.Capacity.Storage()
    			}
    			pluginResizeOpts := volume.NodeResizeOptions{
    				VolumeSpec: vmt.VolumeSpec,
    				NewSize:    *desiredSize,
    				OldSize:    *actualSize,
    			}
    
    			ogInstance, _ := og.(*operationGenerator)
    			_, err := ogInstance.nodeExpandVolume(vmt, nil, pluginResizeOpts)
    
    			if !test.expectError && err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd.go

    const (
    	mremapFixed     = MAP_FIXED
    	mremapDontunmap = 0
    	mremapMaymove   = 0
    )
    
    //sys	mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) = SYS_MREMAP
    
    func mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (uintptr, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  10. pkg/volume/plugins.go

    	// it would be location where volume was mounted for the pod
    	DeviceMountPath string
    
    	// DeviceStagingPath stores location where the volume is staged
    	DeviceStagePath string
    
    	NewSize resource.Quantity
    	OldSize resource.Quantity
    }
    
    type DynamicPluginProber interface {
    	Init() error
    
    	// aggregates events for successful drivers and errors for failed drivers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top