Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,005 for nread (0.04 sec)

  1. 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)
  2. 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)
  3. src/main/java/org/codelibs/core/io/ReaderUtil.java

        /**
         * Creates a {@link Reader} to read from a file with the specified encoding.
         *
         * @param is
         *            the input stream (must not be {@literal null})
         * @param encoding
         *            the encoding of the input stream (must not be {@literal null} or empty)
         * @return a {@link Reader} to read from the file
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/FileOperator.kt

    import java.nio.channels.FileChannel
    import okio.Buffer
    
    /**
     * Read and write a target file. Unlike Okio's built-in `Okio.source(java.io.File file)` and `Okio.sink(java.io.File file)`
     * this class offers:
     *
     *  * **Read/write:** read and write using the same operator.
     *  * **Random access:** access any position within the file.
     *  * **Shared channels:** read and write a file channel that's shared between
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            }
    
            @Test
            @DisplayName("Should throw exception with buffer too small to read structure size")
            void testReadBytesWireFormatInsufficientBufferForStructureSize() {
                // Given
                byte[] buffer = new byte[1]; // Too small to read 2-byte structure size
    
                // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. 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)
  7. .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)
  8. src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java

            assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access");
            assertTrue(region.hasAccess(RdmaAccess.LOCAL_WRITE), "Should have local write access");
            assertFalse(region.hasAccess(RdmaAccess.REMOTE_READ), "Should not have remote read access");
    
            // Test cleanup
            region.close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbConstants.java

        /**
         * Lock and read operation is supported capability.
         */
        int CAP_LOCK_AND_READ = 0x0100;
        /**
         * NT find operations are supported capability.
         */
        int CAP_NT_FIND = 0x0200;
        /**
         * DFS operations are supported capability.
         */
        int CAP_DFS = 0x1000;
        /**
         * Large read operations are supported capability.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. 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)
Back to top