Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 198 for k1024 (0.9 sec)

  1. src/test/java/jcifs/internal/SmbNegotiationTest.java

        }
    
        @Test
        @DisplayName("Test with large buffers")
        void testWithLargeBuffers() {
            // Test with large byte arrays
            byte[] largeRequestBuffer = new byte[1024];
            byte[] largeResponseBuffer = new byte[2048];
    
            // Fill with some test data
            for (int i = 0; i < largeRequestBuffer.length; i++) {
                largeRequestBuffer[i] = (byte) (i % 256);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

            .build(),
        )
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        cancelLater(call, 500)
        val responseBody = response.body.byteStream()
        val buffer = ByteArray(1024)
        assertFailsWith<IOException> {
          while (responseBody.read(buffer) != -1) {
          }
        }.also { expected ->
          assertEquals(cancelMode == INTERRUPT, Thread.interrupted())
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        void testVariousPathFormats(String path) throws Exception {
            // Given
            Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, path);
            byte[] buffer = new byte[1024];
    
            // Encode to set headerStart
            req.encode(buffer, 0);
    
            // Then
            byte[] pathBytes = path.getBytes(StandardCharsets.UTF_16LE);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java

        }
    
        /** True if initialized */
        private static volatile boolean initialized;
    
        /** Cache of {@link BeanDesc} */
        private static final ConcurrentMap<Class<?>, BeanDesc> beanDescCache = newConcurrentHashMap(1024);
    
        static {
            initialize();
        }
    
        /**
         * Returns a {@link BeanDesc}.
         *
         * @param clazz
         *            the Bean class. Must not be {@literal null}
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

                response.decode(buffer1, 0, buffer1.length);
                assertEquals(1, response.getChunksWritten());
                assertEquals(1024, response.getChunkBytesWritten());
                assertEquals(1024, response.getTotalBytesWritten());
    
                // Second decode - should update values
                byte[] buffer2 = createValidCopyChunkResponse(5, 8192, 40960);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SMBSigningDigestTest.java

            // Arrange
            byte[] largeData = new byte[65536]; // 64KB
            for (int i = 0; i < largeData.length; i++) {
                largeData[i] = (byte) (i % 256);
            }
            int offset = 1024;
            int length = 32768; // 32KB
    
            // Act
            signingDigest.sign(largeData, offset, length, request, response);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

        @BeforeEach
        public void setUp() {
            compressionService = new DefaultCompressionService();
    
            // Create test data with patterns that should compress well
            testData = generateTestData(1024);
            largeTestData = generateTestData(8192);
        }
    
        @Test
        @DisplayName("Test supported algorithms")
        public void testSupportedAlgorithms() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

        private TransTransactNamedPipeResponse response;
        private byte[] outputBuffer;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            outputBuffer = new byte[1024];
            response = new TransTransactNamedPipeResponse(mockConfig, outputBuffer);
        }
    
        @Test
        void testConstructor() {
            // Verify that the response is created with correct configuration and buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

         */
        @Test
        public void testInvalidBufferSizeRejection() {
            // Given - Buffers with various invalid sizes
            byte[] tooSmall = new byte[1024];
            byte[] tooLarge = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE + 1];
            byte[] empty = new byte[0];
    
            // When - Try to release invalid buffers
            assertDoesNotThrow(() -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

          if (unsafeImpl.compare(ba3, ba4) == 0) {
            throw new Error(); // deoptimization
          }
        }
      }
    
      /*
      try {
        UnsignedBytesBenchmark bench = new UnsignedBytesBenchmark();
        bench.length = 1024;
        bench.setUp();
        bench.timeUnsafe(100000);
      } catch (Exception e) {
      }*/
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top