Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 3,099 for next (0.02 sec)

  1. src/archive/tar/fuzz_test.go

    	f.Add(b.Bytes())
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		r := NewReader(bytes.NewReader(b))
    		type file struct {
    			header  *Header
    			content []byte
    		}
    		files := []file{}
    		for {
    			hdr, err := r.Next()
    			if err == io.EOF {
    				break
    			}
    			if err != nil {
    				return
    			}
    			buf := bytes.NewBuffer(nil)
    			if _, err := io.Copy(buf, r); err != nil {
    				continue
    			}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/Collections2Test.java

        assertEquals(expectedPermutation, permutations.next());
      }
    
      private <T> void assertNoMorePermutations(Iterator<List<T>> permutations) {
        assertFalse("Expected no more permutations, but there was one.", permutations.hasNext());
        try {
          permutations.next();
          fail("Expected NoSuchElementException.");
        } catch (NoSuchElementException expected) {
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/versioning/ManagedVersionMap.java

            StringBuilder buffer = new StringBuilder("ManagedVersionMap (" + size() + " entries)\n");
            Iterator<String> iter = keySet().iterator();
            while (iter.hasNext()) {
                String key = iter.next();
                buffer.append(key).append('=').append(get(key));
                if (iter.hasNext()) {
                    buffer.append('\n');
                }
            }
            return buffer.toString();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/LinkedHashMultimap.java

            @Override
            public boolean hasNext() {
              checkForComodification();
              return nextEntry != ValueSet.this;
            }
    
            @Override
            @ParametricNullness
            public V next() {
              if (!hasNext()) {
                throw new NoSuchElementException();
              }
              ValueEntry<K, V> entry = (ValueEntry<K, V>) nextEntry;
              V result = entry.getValue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SplitterTest.java

        Iterator<String> iterator = splitter.split(builder).iterator();
    
        builder.append("A,");
        assertEquals("A", iterator.next());
        builder.append("B,");
        assertEquals("B", iterator.next());
        builder.append("C");
        assertEquals("C", iterator.next());
        assertFalse(iterator.hasNext());
      }
    
      public void testFixedLengthSimpleSplit() {
        String simple = "abcde";
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesTest.groovy

                        }
                    ]
                }
            """])
    
            then:
            changes.acceptedChanges.size() == 1
            def acceptedChange = changes.acceptedChanges.entrySet().iterator().next()
            def change = acceptedChange.key
            change.type == "org.gradle.api.initialization.ConfigurableIncludedBuild"
            change.member == "Implemented interface org.gradle.api.initialization.IncludedBuild"
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            // simple bean? assumes string constructor
            if (parser.next() == XmlPullParser.TEXT) {
                final String text = parser.getText();
    
                // confirm element doesn't contain nested XML
                if (parser.next() != XmlPullParser.START_TAG) {
                    return convertText(text, clazz == rawType ? toType : TypeLiteral.get(clazz));
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/MultiEdgesConnecting.java

        return new AbstractIterator<E>() {
          @Override
          @CheckForNull
          protected E computeNext() {
            while (entries.hasNext()) {
              Entry<E, ?> entry = entries.next();
              if (targetNode.equals(entry.getValue())) {
                return entry.getKey();
              }
            }
            return endOfData();
          }
        };
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Queues.java

       * @param timeout how long to wait before giving up
       * @return the number of elements transferred
       * @throws InterruptedException if interrupted while waiting
       * @since NEXT (but since 28.0 in the JRE flavor)
       */
      @CanIgnoreReturnValue
      @J2ktIncompatible
      @GwtIncompatible // BlockingQueue
      @SuppressWarnings("Java7ApiChecker")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. src/bytes/example_test.go

    	b.Write([]byte("abcde"))
    	fmt.Printf("%d", b.Len())
    	// Output: 5
    }
    
    func ExampleBuffer_Next() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s", b.Next(2))
    	// Output:
    	// ab
    	// cd
    	// e
    }
    
    func ExampleBuffer_Read() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	rdbuf := make([]byte, 1)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 07 17:22:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top