Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,064 for readn (2.03 sec)

  1. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

            }
          }
          int undrainedIndex = reads.size() - segment.recencyQueue.size();
          checkAndDrainRecencyQueue(map, segment, reads.subList(undrainedIndex, reads.size()));
          readOrder.addAll(reads);
    
          checkEvictionQueues(map, segment, readOrder, writeOrder);
          checkExpirationTimes(map);
        }
      }
    
      public void testComputeExistingEntry() throws ExecutionException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

        }
    
        /**
         * Reads up to b.length bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException if a network error occurs
         */
    
        @Override
        public int read(final byte[] b) throws IOException {
            return read(b, 0, b.length);
        }
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/PacDataInputStream.java

        }
    
        /**
         * Returns the number of bytes available to read.
         * @return the number of available bytes
         * @throws IOException if an I/O error occurs
         */
        public int available() throws IOException {
            return this.dis.available();
        }
    
        /**
         * Reads bytes into the specified array.
         * @param b the byte array to read into
         * @throws IOException if an I/O error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. docs/contribute/concurrency.md

    Framing rules make it impractical to implement http/2 correctly on a single blocking thread. The flow-control features introduce feedback between reads and writes, requiring writes to acknowledge reads and reads to throttle writes.
    
    In OkHttp we expose a blocking API over a framed protocol. This document explains the code and policy that makes that work.
    
    ### Threads
    
    #### Application's calling thread
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            }
    
            // Read partial content
            try (InputStream in = file.getInputStream()) {
                byte[] buffer = new byte[10];
                int bytesRead = in.read(buffer);
                assertEquals(10, bytesRead, "Should read requested bytes");
                assertEquals("0123456789", new String(buffer, 0, bytesRead, "UTF-8"));
    
                // Read next chunk
                bytesRead = in.read(buffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

        return (int) in.skip(n);
      }
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      public int readUnsignedByte() throws IOException {
        int b1 = in.read();
        if (b1 < 0) {
          throw new EOFException();
        }
    
        return b1;
      }
    
      /**
       * Reads an unsigned {@code short} as specified by {@link DataInputStream#readUnsignedShort()},
       * except using little-endian byte order.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

         * @param remoteKey remote memory key
         * @param length number of bytes to read
         * @return number of bytes actually read
         * @throws IOException if read operation fails
         */
        public abstract int read(ByteBuffer buffer, long remoteAddress, int remoteKey, int length) throws IOException;
    
        /**
         * Write data to RDMA connection
         *
         * @param buffer buffer containing data to write
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileInputStream.java

        }
    
        /**
         * Reads up to b.length bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public int read(final byte[] b) throws IOException {
            return read(b, 0, b.length);
        }
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/ReaderUtil.java

            }
        }
    
        /**
         * Reads text from the given {@link Reader}.
         * <p>
         * The {@link Reader} is not closed by this method.
         * </p>
         *
         * @param reader
         *            the character input stream to read from (must not be {@literal null})
         * @return the text read from the reader
         */
        public static String readText(final Reader reader) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbCopyUtil.java

        private byte[] b;
        private int n;
        private boolean ready;
        private SmbFileOutputStream out;
    
        private SmbException e = null;
    
        WriterThread() {
            super("JCIFS-WriterThread");
            this.ready = false;
        }
    
        /**
         * @return the ready
         */
        boolean isReady() {
            return this.ready;
        }
    
        /**
         * @throws SmbException
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
Back to top