Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 516 for 2048 (0.5 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                // Setup complete request
                byte[] data = new byte[2048];
                new Random().nextBytes(data);
    
                request.setFileId(testFileId);
                request.setData(data, 512, 1024);
                request.setOffset(4096L);
                request.setRemainingBytes(2048);
                request.setWriteFlags(0x02);
    
                // Calculate expected size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                standardInfo.endOfFile = 2048L;
                standardInfo.numberOfLinks = 1;
    
                String str = standardInfo.toString();
    
                assertNotNull(str);
                assertTrue(str.contains("SmbQueryInfoStandard"));
                assertTrue(str.contains("allocationSize=4096"));
                assertTrue(str.contains("endOfFile=2048"));
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/HexdumpTest.java

            // Create a larger test array
            byte[] data = createTestData(1024);
    
            // Test full array conversion
            String result = Hexdump.toHexString(data);
            assertEquals(2048, result.length()); // 1024 bytes * 2 chars
    
            // Test partial conversion
            String partial = Hexdump.toHexString(data, 512, 256);
            assertEquals(512, partial.length()); // 256 bytes * 2 chars
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/SmbNegotiationTest.java

        @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)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

          .isEqualTo(ByteString.EMPTY)
      }
    
      @Test
      fun emitsDynamicTableSizeUpdate() {
        hpackWriter!!.resizeHeaderTable(2048)
        hpackWriter!!.writeHeaders(listOf(Header("foo", "bar")))
        assertBytes(
          // Dynamic table size update (size = 2048).
          0x3F,
          0xE1,
          0xF,
          0x40,
          3,
          'f'.code,
          'o'.code,
          'o'.code,
          3,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashTestUtils.java

          assertHashStringWithSurrogatesEquivalence(hashFunction, random);
        }
      }
    
      private static void assertHashBytesEquivalence(HashFunction hashFunction, Random random) {
        int size = random.nextInt(2048);
        byte[] bytes = new byte[size];
        random.nextBytes(bytes);
        assertEquals(
            hashFunction.hashBytes(bytes), hashFunction.newHasher(size).putBytes(bytes).hash());
        int off = random.nextInt(size);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            dnsDomainInfo.sid.sub_authority_count = 1;
            dnsDomainInfo.sid.sub_authority = new int[] { 21 };
    
            // Encode to buffer
            byte[] buffer = new byte[2048];
            NdrBuffer encodeBuffer = new NdrBuffer(buffer, 0);
            dnsDomainInfo.encode(encodeBuffer);
    
            // Decode from buffer
            NdrBuffer decodeBuffer = new NdrBuffer(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

        @DisplayName("Test setMaxInputResponse method")
        void testSetMaxInputResponse() {
            setupMockConfig();
            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE);
            int maxInput = 2048;
    
            request.setMaxInputResponse(maxInput);
    
            assertNotNull(request);
        }
    
        @Test
        @DisplayName("Test setMaxOutputResponse method")
        void testSetMaxOutputResponse() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

        void testReadBytesWireFormatVariousDataLengths(int dataLength, int dataRemaining) throws Exception {
            // Given
            byte[] largeBuffer = new byte[2048];
            byte[] largeOutputBuffer = new byte[2048];
            Smb2ReadResponse largeResponse = new Smb2ReadResponse(mockConfig, largeOutputBuffer, 0);
    
            int bodyStart = 0;
            int dataOffsetFromHeader = 80;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top