Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,064 for readn (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            int result = smbRandomAccessFile.read();
            assertEquals(42, result);
            assertEquals(1, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testReadEOF() throws SmbException {
            // Mock the read operation to return EOF
            doAnswer(new Answer<Void>() {
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/util/SMBUtil.java

            dst[dstIndex] = (byte) val;
            dstIndex++;
            dst[dstIndex] = (byte) (val >>= 8);
            dst[++dstIndex] = (byte) (val >>= 8);
            dst[++dstIndex] = (byte) (val >> 8);
        }
    
        /**
         * Reads a 16-bit integer value from a byte array in little-endian format
         * @param src the source byte array
         * @param srcIndex the starting index in the source array
         * @return the 16-bit integer value
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        }
      }
    
      /**
       * Returns an immediately-executable task for the calling thread to execute, sleeping as necessary
       * until one is ready. If there are no ready queues, or if other threads have everything under
       * control this will return null. If there is more than a single task ready to execute immediately
       * this will start another thread to handle that work.
       */
      fun awaitTaskToRun(): Task? {
        assertLockHeld()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        ByteSource source = out.asByteSource();
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.reset();
        assertTrue(Arrays.equals(new byte[0], source.read()));
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.close();
      }
    
      private static boolean isAndroid() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_2x.md

        custom `ConnectionSpec`.
    
     *  **Beta WebSockets support.**. The `okhttp-ws` subproject offers a new
        websockets client. Please try it out! When it's ready we intend to include
        it with the core OkHttp library.
    
     *  **Okio updated to 1.3.0.**
    
        ```xml
        <dependency>
          <groupId>com.squareup.okio</groupId>
          <artifactId>okio</artifactId>
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/FileOperatorTest.kt

        val buffer = Buffer()
        operator.read(6, buffer, 21)
        operator.read(36, buffer, 1)
        operator.read(5, buffer, 5)
        operator.read(28, buffer, 8)
        operator.read(17, buffer, 10)
        operator.read(36, buffer, 2)
        operator.read(2, buffer, 4)
        operator.write(0, buffer, buffer.size)
        operator.read(0, buffer, 12)
        operator.read(47, buffer, 3)
        operator.read(45, buffer, 2)
        operator.read(47, buffer, 3)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

        }
    
        @Override
        public synchronized int read() throws IOException {
            if (read(tmp, 0, 1) < 0) {
                return -1;
            }
            return tmp[0] & 0xFF;
        }
    
        @Override
        public synchronized int read(final byte[] b) throws IOException {
            return read(b, 0, b.length);
        }
    
        /* This method will not return until len bytes have been read
         * or the stream has been closed.
         */
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. docs/distributed/SIZING.md

    # Erasure code sizing guide
    
    ## Toy Setups
    
    Capacity constrained environments, MinIO will work but not recommended for production.
    
    | servers | drives (per node) | stripe_size | parity chosen (default) | tolerance for reads (servers) | tolerance for writes (servers) |
    |--------:|------------------:|------------:|------------------------:|------------------------------:|-------------------------------:|
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComReadAndX.java

    /**
     * SMB1 Read AndX request message.
     *
     * This command is used to read data from a file that has been
     * previously opened with an Open command.
     */
    public class SmbComReadAndX extends AndXServerMessageBlock {
    
        private long offset;
        private int fid;
        int openTimeout;
        int maxCount, minCount, remaining;
    
        /**
         * Constructs a Read AndX request.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(0, ticker.read());
        assertEquals(10, ticker.read());
        assertEquals(20, ticker.read());
      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top