Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for 512 (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

                "512, FILE_NOTIFY_CHANGE_STREAM_NAME", "1024, FILE_NOTIFY_CHANGE_STREAM_SIZE", "2048, FILE_NOTIFY_CHANGE_STREAM_WRITE" })
        void testCompletionFilterConstants(int value, String description) {
            // Given & When
            request.setCompletionFilter(value);
            byte[] buffer = new byte[512];
            request.writeBytesWireFormat(buffer, 0);
    
            // 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)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

        void testWriteBytesWireFormatDirect() throws Exception {
            // Given
            byte[] buffer = new byte[512];
            int offset = 100;
    
            // First encode to set headerStart
            byte[] tempBuffer = new byte[512];
            request.encode(tempBuffer, 50);
    
            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, offset);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/rdma/RdmaConfigurationTest.java

            assertEquals(131072, config.getRdmaMaxSendSize(), "Max send size should be 128KB");
            assertEquals(131072, config.getRdmaMaxReceiveSize(), "Max receive size should be 128KB");
            assertEquals(512, config.getRdmaCredits(), "Credits should be 512");
        }
    
        @Test
        public void testRdmaConfigurationInvalidValues() throws CIFSException {
            Properties props = new Properties();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            offset += 4;
    
            // free (4 bytes)
            SMBUtil.writeInt4(500000, buffer, offset);
            offset += 4;
    
            // bytesPerSect (2 bytes + 2 padding)
            SMBUtil.writeInt2(512, buffer, offset);
            offset += 4;
    
            // Set dataCount using reflection
            setDataCount(response, offset);
    
            int bytesRead = response.readDataWireFormat(buffer, 0, offset);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/MD4.java

        /**
         * Number of bytes processed so far mod. 2 power of 64.
         */
        private long count;
    
        /**
         * 512 bits input buffer = 16 x 32-bit words holds until reaches 512 bits.
         */
        private byte[] buffer = new byte[BLOCK_LENGTH];
    
        /**
         * 512 bits work buffer = 16 x 32-bit words
         */
        private final int[] X = new int[16];
    
        // Constructors
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putLong(524288L); // Actual free allocation units (512K)
                buffer.putInt(8); // Sectors per allocation unit
                buffer.putInt(512); // Bytes per sector
                byte[] bufferArray = buffer.array();
    
                // When
                int bytesConsumed = fileFsFullSizeInfo.decode(bufferArray, 0, bufferArray.length);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                buffer.putLong(1048576L); // Total allocation units (1M)
                buffer.putLong(524288L); // Free allocation units (512K)
                buffer.putInt(8); // Sectors per allocation unit
                buffer.putInt(512); // Bytes per sector
                byte[] bufferArray = buffer.array();
    
                // When
                int bytesConsumed = fileFsSizeInfo.decode(bufferArray, 0, bufferArray.length);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/PreauthIntegrityService.java

        private static final int DEFAULT_HASH_ALGORITHM = HASH_ALGO_SHA512;
        private static final int SALT_SIZE = 32; // 32 bytes as per SMB 3.1.1 spec
        private static final int HASH_SIZE_SHA512 = 64; // SHA-512 produces 64-byte hashes
    
        // Session-specific preauth integrity contexts
        private final ConcurrentMap<String, PreauthIntegrityContext> sessionContexts = new ConcurrentHashMap<>();
    
        // Security configuration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

        @Test
        public void testToStringContainsCount() {
            // Little-endian: count = 512 (0x0200)
            byte[] buf = new byte[12];
            buf[0] = 0x00;
            buf[1] = 0x02; // count = 512 in little-endian
            resp.readParameterWordsWireFormat(buf, 0);
            String str = resp.toString();
            assertTrue(str.contains("count=512"), "toString should include numeric count");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB210);
            request = new Smb2NegotiateRequest(mockConfig, Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED);
    
            byte[] buffer = new byte[512];
    
            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
            // Then
            assertTrue(bytesWritten > 0);
    
            // Verify structure size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top