Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,160 for readn (0.02 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

            }
            bufferIndex += 4;
    
            // Read signature
            System.arraycopy(buffer, bufferIndex, header.signature, 0, 16);
            bufferIndex += 16;
    
            // Read nonce
            System.arraycopy(buffer, bufferIndex, header.nonce, 0, 16);
            bufferIndex += 16;
    
            // Read original message size
            header.originalMessageSize = SMBUtil.readInt4(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // The content of these bytes is not critical for this test, only that 6 bytes are read.
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }; // Sample 6 bytes
            ByteArrayInputStream bais = new ByteArrayInputStream(data);
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
    
            // Create a buffer large enough to hold the read bytes
            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)
  3. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

        class IntegrationTests {
    
            @Test
            @DisplayName("Should handle complete read-write cycle")
            void testCompleteReadWriteCycle() throws SMBProtocolDecodingException {
                // Given
                byte[] writeBuffer = new byte[100];
                byte[] readBuffer = new byte[100];
    
                // Prepare valid read buffer
                SMBUtil.writeInt2(4, readBuffer, 10);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseResponseInterceptor.kt

          @Throws(IOException::class)
          override fun read(
            sink: Buffer,
            byteCount: Long,
          ): Long {
            val buffer = Buffer()
            val read = delegate.read(buffer, byteCount)
            if (read != -1L) {
              sink.write(buffer.readByteString().toAsciiUppercase())
            }
            return read
          }
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. docs/en/docs/async.md

    But then, even though you still don't have your burgers, your work with the cashier is "on pause" ⏸, because you have to wait 🕙 for your burgers to be ready.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 24K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/LineIterator.java

        /** {@link BufferedReader} */
        protected final BufferedReader reader;
    
        /** The line that has been read */
        protected String line = EMPTY;
    
        /**
         * Returns an {@link Iterable} that wraps a {@link LineIterator} for use in enhanced for-loops.
         *
         * @param reader
         *            The {@link Reader} to read strings from. Must not be {@literal null}.
         * @return An {@link Iterable} that wraps a {@link LineIterator}.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/AbstractIterator.java

        switch (state) {
          case DONE:
            return false;
          case READY:
            return true;
          default:
        }
        return tryToComputeNext();
      }
    
      private boolean tryToComputeNext() {
        state = State.FAILED; // temporary pessimism
        next = computeNext();
        if (state != State.DONE) {
          state = State.READY;
          return true;
        }
        return false;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

                beg_idx = (beg_idx + 1) % pipe_buf.length;
            }
            return result;
        }
    
        @Override
        public int read(final byte[] b) throws IOException {
            return read(b, 0, b.length);
        }
    
        @Override
        public int read(final byte[] b, int off, final int len) throws IOException {
            int result = -1;
            int i;
    
            if (len <= 0) {
                return 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. .github/workflows/scorecard.yml

      # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
      schedule:
        - cron: '45 9 * * 0'
      push:
        branches: [ "master" ]
    
    # Declare default permissions as read only.
    permissions: read-all
    
    jobs:
      analysis:
        name: Scorecard analysis
        runs-on: ubuntu-latest
        permissions:
          # Needed to upload the results to code-scanning dashboard.
          security-events: write
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 19:19:31 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                assertEquals(49, SMBUtil.readInt2(buffer, 0)); // Structure size
                assertEquals(2, buffer[2]); // Padding
                assertEquals(0x01, buffer[3]); // Read flags
                assertEquals(4096, SMBUtil.readInt4(buffer, 4)); // Read length
                assertEquals(8192L, SMBUtil.readInt8(buffer, 8)); // Offset
                assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, 16, 32)); // File ID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
Back to top