Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for maxEntries (0.09 sec)

  1. cmd/os_other.go

    	if err != nil {
    		return nil, osErrToFileErr(err)
    	}
    	defer d.Close()
    
    	maxEntries := 1000
    	if opts.count > 0 && opts.count < maxEntries {
    		maxEntries = opts.count
    	}
    
    	done := false
    	remaining := opts.count
    
    	for !done {
    		// Read up to max number of entries.
    		fis, err := d.Readdir(maxEntries)
    		if err != nil {
    			if err == io.EOF {
    				break
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 13 15:14:36 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/archive/tar/format.go

    type sparseArray []byte
    
    func (s sparseArray) entry(i int) sparseElem { return sparseElem(s[i*24:]) }
    func (s sparseArray) isExtended() []byte     { return s[24*s.maxEntries():][:1] }
    func (s sparseArray) maxEntries() int        { return len(s) / 24 }
    
    type sparseElem []byte
    
    func (s sparseElem) offset() []byte { return s[00:][:12] }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  3. src/archive/tar/reader.go

    	var p parser
    	hdr.Size = p.parseNumeric(blk.toGNU().realSize())
    	if p.err != nil {
    		return nil, p.err
    	}
    	s := blk.toGNU().sparse()
    	spd := make(sparseDatas, 0, s.maxEntries())
    	for {
    		for i := 0; i < s.maxEntries(); i++ {
    			// This termination condition is identical to GNU and BSD tar.
    			if s.entry(i).offset()[0] == 0x00 {
    				break // Don't return, need to process extended headers (even if empty)
    			}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. src/archive/tar/writer.go

    			spd = invertSparseEntries(sph, hdr.Size)
    
    			// Format the sparse map.
    			formatSPD := func(sp sparseDatas, sa sparseArray) sparseDatas {
    				for i := 0; len(sp) > 0 && i < sa.MaxEntries(); i++ {
    					f.formatNumeric(sa.Entry(i).Offset(), sp[0].Offset)
    					f.formatNumeric(sa.Entry(i).Length(), sp[0].Length)
    					sp = sp[1:]
    				}
    				if len(sp) > 0 {
    					sa.IsExtended()[0] = 1
    				}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    		}
    	}
    }
    
    func TestReadOldGNUSparseMap(t *testing.T) {
    	populateSparseMap := func(sa sparseArray, sps []string) []string {
    		for i := 0; len(sps) > 0 && i < sa.maxEntries(); i++ {
    			copy(sa.entry(i), sps[0])
    			sps = sps[1:]
    		}
    		if len(sps) > 0 {
    			copy(sa.isExtended(), "\x80")
    		}
    		return sps
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

            return ImmutableSetMultimap.of();
          }
          Collection<Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries = builderMap.entrySet();
          if (keyComparator != null) {
            mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries);
          }
          return fromMapBuilderEntries(mapEntries, valueComparator);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSetMultimap.java

            return ImmutableSetMultimap.of();
          }
          Collection<Map.Entry<K, ImmutableCollection.Builder<V>>> mapEntries = builderMap.entrySet();
          if (keyComparator != null) {
            mapEntries = Ordering.from(keyComparator).<K>onKeys().immutableSortedCopy(mapEntries);
          }
          return fromMapBuilderEntries(mapEntries, valueComparator);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          @CheckForNull Comparator<? super V> valueComparator) {
        if (mapEntries.isEmpty()) {
          return of();
        }
        ImmutableMap.Builder<K, ImmutableList<V>> builder =
            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<? extends K, ? extends Collection<? extends V>> entry : mapEntries) {
          K key = entry.getKey();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.test-retry.gradle.kts

     * limitations under the License.
     */
    
    plugins {
        id("org.gradle.test-retry")
    }
    
    if (System.getenv().containsKey("CI")) {
        tasks.withType<Test>().configureEach {
            retry {
                maxRetries.set(2)
            }
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Apr 26 06:43:17 UTC 2023
    - 810 bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableListMultimap.java

          @CheckForNull Comparator<? super V> valueComparator) {
        if (mapEntries.isEmpty()) {
          return of();
        }
        ImmutableMap.Builder<K, ImmutableList<V>> builder =
            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<? extends K, ? extends Collection<? extends V>> entry : mapEntries) {
          K key = entry.getKey();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top