Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 437 for readLine (0.03 sec)

  1. src/bytes/reader_test.go

    		if _, _, err := reader.ReadRune(); err != nil {
    			// should not happen
    			t.Fatal(err)
    		}
    		tt.f(reader)
    		err := reader.UnreadRune()
    		if err == nil {
    			t.Errorf("Unreading after %s: expected error", tt.name)
    		}
    	}
    }
    
    func TestReaderDoubleUnreadRune(t *testing.T) {
    	buf := NewBuffer([]byte("groucho"))
    	if _, _, err := buf.ReadRune(); err != nil {
    		// should not happen
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
  2. cmd/metacache_gen.go

    		}
    		switch msgp.UnsafeString(field) {
    		case "end":
    			z.ended, err = dc.ReadTime()
    			if err != nil {
    				err = msgp.WrapError(err, "ended")
    				return
    			}
    		case "st":
    			z.started, err = dc.ReadTime()
    			if err != nil {
    				err = msgp.WrapError(err, "started")
    				return
    			}
    		case "lh":
    			z.lastHandout, err = dc.ReadTime()
    			if err != nil {
    				err = msgp.WrapError(err, "lastHandout")
    				return
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Nov 08 18:26:08 UTC 2021
    - 10K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // Test that an IOException is thrown if the input stream does not provide enough bytes.
            // Simulate reading less than 6 bytes.
            when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(5); // Simulate reading only 5 bytes
    
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
            byte[] buffer = new byte[6];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/MimeMap.java

    import java.io.IOException;
    import java.io.InputStream;
    
    /**
     * MIME type mapping utility for file extensions.
     * Provides mappings between file extensions and their corresponding MIME types
     * by reading from a resource file containing extension-to-MIME-type mappings.
     */
    public class MimeMap {
    
        private static final int IN_SIZE = 7000;
    
        private static final int ST_START = 1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/index/contents/document/DocumentReader.java

     */
    package org.codelibs.fess.suggest.index.contents.document;
    
    import java.io.Closeable;
    import java.util.Map;
    
    /**
     * Interface for reading documents and extracting their contents into a map.
     * Implementations of this interface should provide the logic for reading
     * documents and converting them into a key-value structure.
     *
     * <p>This interface extends {@link java.io.Closeable}, so implementations
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  6. .github/workflows/CheckBadMerge.groovy

            }
        }
    
        static List<String> filesFromMerge(String commit) {
            getStdout("git diff --name-only $commit^1..$commit").readLines()
        }
    
        static List<String> branchesOf(String commit) {
            return getStdout("git branch -r --contains $commit")
                .readLines()
                .collect { it.replace("*", "") } // remove the * from the current branch, e.g. * master -> master
                .collect { it.trim() }
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Fri Jan 24 10:03:31 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/entity/ElevateWord.java

         *
         * @return a SuggestItem representing this ElevateWord
         */
        public SuggestItem toSuggestItem() {
            final String[][] readingArray =
                    this.getReadings().stream().map(reading -> new String[] { reading }).toArray(count -> new String[count][]);
            return new SuggestItem(new String[] { this.getElevateWord() }, readingArray, fields.toArray(new String[fields.size()]), 1, 0,
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            int read = response.readParametersWireFormat(buffer, 0, 10);
    
            assertEquals(0, read);
        }
    
        @Test
        void testReadDataWireFormat_SmbInfoAllocation() throws Exception {
            // Test reading SMB_INFO_ALLOCATION data
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            // Prepare buffer with SmbInfoAllocation data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

       */
      @SuppressWarnings("removal") // b/260137033
      public static void awaitDone(Future<?> future) {
        if (future.isDone()) {
          return;
        }
        long timeoutSeconds = timeoutSeconds();
        long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
        do {
          System.runFinalization();
          if (future.isDone()) {
            return;
          }
          System.gc();
          try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

                this.reading = reading;
            }
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 15.7K bytes
    - Viewed (0)
Back to top