Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 74 for 8192 (0.01 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

        }
    
        @Test
        @DisplayName("Test configuration usage for notify buffer size")
        void testConfigurationNotifyBufferSize() {
            int notifyBufferSize = 8192;
            when(mockConfig.getNotifyBufferSize()).thenReturn(notifyBufferSize);
    
            notifyChange = new NtTransNotifyChange(mockConfig, 0x1234, FILE_NOTIFY_CHANGE_FILE_NAME, false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            lenient().when(mockContext.getBufferCache()).thenReturn(mockBufferCache);
    
            // Setup buffer cache to return buffers for sendrecv operations
            lenient().when(mockBufferCache.getBuffer()).thenReturn(new byte[8192]);
        }
    
        /**
         * Helper method to create a DcerpcPipeHandle with injected mocks
         * Uses mock to avoid constructor issues while allowing real method calls
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

        } else {
          Long.MAX_VALUE
        }
      timeout().deadlineNanoTime(nowNs + minOf(originalDurationNs, timeUnit.toNanos(duration.toLong())))
      return try {
        val skipBuffer = Buffer()
        while (read(skipBuffer, 8192) != -1L) {
          skipBuffer.clear()
        }
        true // Success! The source has been exhausted.
      } catch (_: InterruptedIOException) {
        false // We ran out of time before exhausting the source.
      } finally {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

        private static final int TEST_RESUME_KEY = 0xABCD;
        private static final String TEST_FILENAME = "testfile.txt";
        private static final int TEST_BATCH_COUNT = 100;
        private static final int TEST_BATCH_SIZE = 8192;
    
        @BeforeEach
        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            Properties props = new Properties();
            config = new PropertyConfiguration(props);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

                longFilename.append("\\verylongdirectoryname");
            }
    
            trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, longFilename.toString());
            byte[] dst = new byte[8192]; // Large buffer for long filename
    
            // When
            int bytesWritten = trans2GetDfsReferral.writeParametersWireFormat(dst, 0);
    
            // Then
            assertTrue(bytesWritten > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                Arrays.fill(largeData, (byte) 'Y');
    
                TestCreateContextRequest request = new TestCreateContextRequest(largeName, largeData);
    
                byte[] buffer = new byte[8192];
                int result = request.encode(buffer, 100);
    
                assertTrue(result > 0);
                assertTrue(result <= buffer.length - 100);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            }
            longPath.append("file.txt");
    
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, longPath.toString(), TEST_INFO_LEVEL);
    
            byte[] buffer = new byte[8192]; // Large buffer for long path
            int written = trans2QueryPathInfo.writeParametersWireFormat(buffer, 0);
    
            // Should write the entire path
            assertTrue(written > longPath.length());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

        void setUp() {
            // Setup buffer cache mocks with lenient stubbing
            lenient().when(mockContext.getBufferCache()).thenReturn(mockBufferCache);
            lenient().when(mockBufferCache.getBuffer()).thenReturn(new byte[8192]);
            handle = new TestDcerpcHandle(mockContext, mockBinding);
        }
    
        @Nested
        @DisplayName("Binding Parsing Tests")
        class BindingParsingTests {
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                buffer[4] = 0x04; // sectPerAlloc = 4
                buffer[8] = 0x00;
                buffer[9] = 0x20; // alloc = 8192
                buffer[16] = 0x00;
                buffer[17] = 0x04; // bytesPerSect = 1024
    
                smbInfoAllocation.decode(buffer, 0, buffer.length);
    
                assertEquals(4L * 8192L * 1024L, smbInfoAllocation.getCapacity());
            }
    
            @Test
            @DisplayName("Should handle zero values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            Smb2SessionSetupRequest req =
                    new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, TEST_PREVIOUS_SESSION_ID, largeToken);
            byte[] buffer = new byte[8192];
    
            // When
            req.encode(buffer, 0);
    
            // Then
            int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH;
            assertEquals(largeToken.length, SMBUtil.readInt2(buffer, bodyOffset + 14));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top