Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 956 for READ (0.07 sec)

  1. android/guava-tests/test/com/google/common/io/CharSourceTester.java

      public void testOpenStream() throws IOException {
        Reader reader = source.openStream();
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertExpectedString(writer.toString());
      }
    
      public void testOpenBufferedStream() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/rdma/RdmaNegotiateResponse.java

        }
    
        /**
         * Get maximum read/write size
         *
         * @return maximum read/write size in bytes
         */
        public int getMaxReadWriteSize() {
            return maxReadWriteSize;
        }
    
        /**
         * Set maximum read/write size
         *
         * @param maxReadWriteSize maximum read/write size in bytes
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL);
    
            byte[] buffer = new byte[256];
            int read = trans2QueryPathInfo.readSetupWireFormat(buffer, 0, buffer.length);
    
            // Should read nothing (returns 0)
            assertEquals(0, read);
        }
    
        @Test
        void testReadParametersWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

            // Flags should not be set for partial read
            assertFalse(d.getParametersDone(), "parametersDone should be false for partial read");
            assertFalse(d.getDataDone(), "dataDone should be false for partial read");
            assertTrue(d.getHasMore(), "hasMore should remain true for partial read");
        }
    
        /**
         * Test scenario with no data to read
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

    ) {
      private val countingSource: CountingSource = CountingSource(source)
      private val source: BufferedSource = countingSource.buffer()
    
      /** Total bytes read thus far. */
      private val byteCount: Long
        get() = countingSource.bytesRead - source.buffer.size
    
      /** How many bytes to read before [peekHeader] should return false, or -1L for no limit. */
      private var limit = -1L
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    			return n - remain, b.readErr()
    		}
    	}
    }
    
    // Read reads data into p.
    // It returns the number of bytes read into p.
    // The bytes are taken from at most one Read on the underlying [Reader],
    // hence n may be less than len(p).
    // To read exactly len(p) bytes, use io.ReadFull(b, p).
    // If the underlying [Reader] can return a non-zero count with io.EOF,
    // then this Read method can do so as well; see the [io.Reader] docs.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/MultiInputStream.java

      }
    
      @Override
      public int read() throws IOException {
        while (in != null) {
          int result = in.read();
          if (result != -1) {
            return result;
          }
          advance();
        }
        return -1;
      }
    
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        checkNotNull(b);
        while (in != null) {
          int result = in.read(b, off, len);
          if (result != -1) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/curl/io/ContentCache.java

            }
        }
    
        /**
         * Returns an InputStream to read the content from the cache.
         * If the content is stored in a file, a FileInputStream is returned.
         * Otherwise, a ByteArrayInputStream is returned to read the data from memory.
         *
         * @return an InputStream to read the cached content
         * @throws IOException if an I/O error occurs while creating the InputStream
         */
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

        val body = body("")
        val bytes = body.byteStream()
        assertThat(bytes.read()).isEqualTo(-1)
      }
    
      @Test
      fun byteStreamSeesBom() {
        val body = body("efbbbf68656c6c6f")
        val bytes = body.byteStream()
        assertThat(bytes.read()).isEqualTo(0xef)
        assertThat(bytes.read()).isEqualTo(0xbb)
        assertThat(bytes.read()).isEqualTo(0xbf)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/jar/JarFileUtil.java

        }
    
        private static final Logger logger = Logger.getLogger(JarFileUtil.class);
    
        /**
         * Creates and returns a <code>JarFile</code> to read the specified JAR file.
         *
         * @param file the file path (must not be {@literal null})
         * @return a <code>JarFile</code> to read the specified JAR file
         */
        public static JarFile create(final String file) {
            assertArgumentNotNull("file", file);
    
            try {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top