Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 82 for BytesRead (0.28 sec)

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

                    new Trans2QueryPathInformationResponse(Trans2QueryPathInformationResponse.SMB_QUERY_FILE_BASIC_INFO) {
                    };
            int bytesRead = trans.readDataWireFormat(buffer, 0, buffer.length);
            assertEquals(buffer.length, bytesRead);
            // Access private field 'info'
            java.lang.reflect.Field infoField = Trans2QueryPathInformationResponse.class.getDeclaredField("info");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            byte[] buffer = new byte[100];
            int offset = 10;
    
            // When
            int bytesRead = request.readBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(0, bytesRead, "Cancel requests do not read response data");
        }
    
        @Test
        @DisplayName("Test multiple property settings")
        void testMultiplePropertySettings() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            buffer[bufferIndex++] = (byte) 0x80;
            buffer[bufferIndex++] = (byte) 0xFF;
            // encryptionKeyLength
            buffer[bufferIndex++] = 8;
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
            assertEquals(34, bytesRead);
            assertEquals(5, response.getDialectIndex());
            assertTrue(response.getServerData().encryptedPasswords);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
            byte[] buffer = createTestData(256);
    
            // When
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
            // Then
            assertEquals(0, bytesRead);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 10, 50, 100, 200 })
        @DisplayName("Should write consistent structure at different offsets")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            request = new Smb2NegotiateRequest(mockConfig, 0);
            byte[] buffer = new byte[256];
    
            // When
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
            // Then - This is a request, so it doesn't read from wire
            assertEquals(0, bytesRead);
        }
    
        @ParameterizedTest
        @DisplayName("Should generate correct dialects for version ranges")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                    throw new SMBProtocolDecodingException("Test exception");
                }
                return bytesRead;
            }
    
            public void setBytesWritten(int bytes) {
                this.bytesWritten = bytes;
            }
    
            public void setBytesRead(int bytes) {
                this.bytesRead = bytes;
            }
    
            public void setThrowOnRead(boolean throwOnRead) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

      private class CountingSource(
        source: Source,
      ) : ForwardingSource(source) {
        var bytesRead = 0L
    
        override fun read(
          sink: Buffer,
          byteCount: Long,
        ): Long {
          val result = delegate.read(sink, byteCount)
          if (result == -1L) return -1L
          bytesRead += result
          return result
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

                paramWordsRead = 10;
                return paramWordsRead;
            }
    
            @Override
            protected int readBytesWireFormat(byte[] src, int srcIndex) {
                bytesRead = 20;
                return bytesRead;
            }
    
            @Override
            public boolean isRetainPayload() {
                return retainPayload;
            }
    
            @Override
            public void setRawPayload(byte[] payload) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                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);
                assertEquals(10, bytesRead, "Should read next chunk");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                when(mockConfig.isRequireSecureNegotiate()).thenReturn(false);
    
                // Read the response
                int bytesRead = echoResponse.readBytesWireFormat(buffer, bufferIndex);
                assertEquals(0, bytesRead);
    
                // Write response (echo responses don't write data)
                int bytesWritten = echoResponse.writeBytesWireFormat(buffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top